の違いについて...
select * from table_a where id != 30 and name != 'Kevin';
と
select * from table_a where id != 30 or name != 'Kevin';
最初の1つは、を意味し"select all rows from table_a where the id is not 30 and the name is not Kevin"
ます。
したがって、{30、'Bill'}の{Id、Name}行がこの最初のクエリから返されます。
しかし、2つ目は、を意味し"select all rows from table_a where the id is not 30 or the name is not 'Kevin'"
ます。
したがって、上記の{30、'Bill'}は、この2番目のクエリからは返されません。
そうですか?