:> = 10 ホイールと質量はない作品のこの色を選択して、私は4つのアイデアWHERE NOT SQL命令
select color from A where not(name='wheel') and mass>=10
select color from A where mass>=10 and not(name='wheel')
select color from A where not name='wheel' and mass>=10
を持っています
select color from A where (not name='wheel') and mass>=10
正しい?最初は確かにOKだと思いますが、残りはどうですか?
4つの異なるバージョンを試してみてください。あなたのテーブルにいくつかのNULL値を持つことを忘れないでください。 (彼らは初心者を混乱させる傾向があります) – jarlh
Aから名前を選択します。 –
私は<>と!=について知っていますが、NOTを使う必要があります – tabaluga2012