{"id":900,"date":"2009-01-30T17:40:29","date_gmt":"2009-01-30T08:40:29","guid":{"rendered":"http:\/\/fukata.org\/?p=900"},"modified":"2017-08-11T22:47:42","modified_gmt":"2017-08-11T22:47:42","slug":"mysql-null-safe","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/900\/","title":{"rendered":"MySQL\uff1aNULL\u30bb\u30fc\u30d5\u306a\u6bd4\u8f03\u6f14\u7b97\u5b50"},"content":{"rendered":"

MySQL\u306e\u300c=\u300d\u3084\u300c<>\u300d\u306fNULL\u30bb\u30fc\u30d5\u3067\u306f\u306a\u3044\u3002\u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3068\u8a00\u3046\u3068\u3001\u6bd4\u8f03\u5bfe\u8c61\u306e\u5024\u304cNULL\u306e\u5834\u5408\u30010\u307e\u305f\u306f1\u3067\u306f\u306a\u304f\u3001NULL\u304c\u7d50\u679c\u3068\u3057\u3066\u623b\u308a\u3001\u30d2\u30c3\u30c8\u3057\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n

MySQL\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6587\u3067NULL\u30bb\u30fc\u30d5\u3092\u5b9f\u73fe\u3057\u3066\u3044\u308b\u3002\u69cb\u6587\u306b\u3064\u3044\u3066\u306f\u4f7f\u7528\u3059\u308bRDBS\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u306e\u3067\u6ce8\u610f<\/p>\n

\u300c=\u300d\u306eNULL\u30bb\u30fc\u30d5\uff1a \u5024\uff11 <=> \u50242<\/p>\n

\u300c<>\u300d\u306eNULL\u30bb\u30fc\u30d5\uff1a NOT \u5024\uff11 <=> \u50242<\/p><\/blockquote>\n

\u25a0\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n