开发过程中遇到查询审核未完成任务数据,需要把审核完成及挂起相关流程进行过滤,使用模糊匹配REGEXP_LIKE,not in方法如下:
select * from task_table where not regexp_like(status,'审核完成|延期')
select * from task_table where status not in('审核完成','延期')
开发过程中遇到查询审核未完成任务数据,需要把审核完成及挂起相关流程进行过滤,使用模糊匹配REGEXP_LIKE,not in方法如下:
select * from task_table where not regexp_like(status,'审核完成|延期')
select * from task_table where status not in('审核完成','延期')