如表A的字段B的值是2021-1和2021-2,其他的值为1-2021.什么语句能够查出不包含2021-1和2021-2的数据呢。
select * from A where B not in ('2021-1','2021-2');select * from A where B != '2021-1' and B != '2021-2';
not in ('2021-1', '2021-2')