select * from file where DOC_SUBJECT not like '%测试%' and (DOC_STATUS like '待审' or DOC_STATUS like '结束' ) #过滤测试数据,并保留待审和结束数据。
<=>
select * from LEAP.HMDW_DW_CZDS_YXHD_NEW where DOC_SUBJECT not like '%测试%' and DOC_STATUS not like '废弃' and DOC_STATUS not like '驳回' and DOC_STATUS not like '草稿' #比较笨,而且,DOC_STATUS值有新增就会导致错误。
PS:
DOC_STATUS数值有:待审、结束、草稿、废弃、驳回。