LoginSignup
4
4

More than 5 years have passed since last update.

MySQL: NULLは比較できない

Posted at

MySQLに限ったことではないかもしれませんが、NULL値は「IS (NOT) NULL」でしか比較できず...
比較演算子とか、IN句とかどうしても使いたい時は、IFNULL([変換対象], [変換後の値])で一旦何かの文字列に変換してから比較。

4
4
5

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4