–判断存在 if exists(select id from tableName where Status=0 ) –判断不存在 if not exists(select id from tableName where Status=0 )