我想选择条件为Out_No
does not exist
(event_type = 'COMMENT_CHANGE' and COMMENTS LIKE 'Cause:%')
示例查询
select
Out_no
from TableA
Where Out_no > '12345'
答案 0 :(得分:0)
我最终使用this question的答案。
select out_no,
from TableA
where out_no > '12345'
and out_no not in
( select
out_no
from TableA
where event_type = 'Comment_change'
and comments like 'Cause%'
)
Order by out_no desc
希望它能帮助别人。