我有一张包含测试结果的表格。
看起来像:
Test | Result
Math | Pass
Science | Fail
History | cancelled
French | Absent
该表名为 table1。我想删除表中列结果的值不是的行"Pass"
或"fail"
就像是:
Delete from table1
where result not in (Pass, Fail);
结果表如下所示:
Test | Result
Math | Pass
Science | Fail