在表中快速查出状态没有 Released 的记录。
例如 1100580 就是状态中没有 Released 的编号 状态
----------------
1100580 Planned
1100580 Reserved
1100580 Partially Delivered
1100580 Partially Delivered
1100580 Delivered
1100580 Delivered
1100580 Partially Delivered
1100580 Partially Delivered
1100581 Partially Delivered
1100581 Invoiced/Closed
1100581 Delivered
1100581 Invoiced/Closed
1100581 Picked
1100581 Reserved
1100581 Partially Delivered
1100581 Released
例如 1100580 就是状态中没有 Released 的编号 状态
----------------
1100580 Planned
1100580 Reserved
1100580 Partially Delivered
1100580 Partially Delivered
1100580 Delivered
1100580 Delivered
1100580 Partially Delivered
1100580 Partially Delivered
1100581 Partially Delivered
1100581 Invoiced/Closed
1100581 Delivered
1100581 Invoiced/Closed
1100581 Picked
1100581 Reserved
1100581 Partially Delivered
1100581 Released
select *
from tb1
where replace(状态,'Released','') = 状态
select *
from tb1
where 状态 not like '%Released%'
where 编号 not in
(select 编号 from tab_name where 状态='Released');
where 编号 not in
(select 编号 from tab_name where 状态='Released');