{"id":676,"date":"2011-07-08T14:34:44","date_gmt":"2011-07-08T05:34:44","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=676"},"modified":"2018-04-22T14:36:08","modified_gmt":"2018-04-22T05:36:08","slug":"post-676","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2011\/07\/08\/post-676\/","title":{"rendered":"DB\u306e\u30c7\u30fc\u30bf\u3067\u30ab\u30e9\u30e0\u306e\u5024\u304cNULL\u306e\u3082\u306e\u3092\u691c\u7d22\u3059\u308bSQL"},"content":{"rendered":"<p>\u3068\u3066\u3082\u57fa\u672c\u7684\u306a\u3053\u3068\u306a\u3093\u3060\u3051\u308c\u3069\u30fb\u30fb\u30fb<br \/>\n\u308f\u304b\u3089\u306a\u304f\u3066\u8abf\u3079\u305f\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002<br \/>\nDB\u306e\u30c7\u30fc\u30bf\u3067\u30ab\u30e9\u30e0\u306e\u5024\u304cNULL\u306e\u30c7\u30fc\u30bf\u3082\u691c\u7d22\u3057\u305f\u3044\uff01<br \/>\n\u305d\u3093\u306a\u3068\u304d\u306f\u3001WHERE\u53e5\u3067&#8221;IS NULL&#8221;\u3092\u4f7f\u7528\u3059\u308b\u3002<br \/>\n\u203b&#8221;ISNULL&#8221;\u3068\u3044\u3046\u95a2\u6570\u3082\u3042\u308b\u304c\u3001\u9055\u3046\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p>\u25a0\u4f7f\u3044\u65b9<\/p>\n<pre>\r\nSELECT * FROM Employee WHERE id IS NULL;\r\n<\/pre>\n<p>\u3053\u308c\u3067 id \u3068\u3044\u3046\u30ab\u30e9\u30e0\u3067\u5024\u304cNULL\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u308b\u306e\u306f\u3001SQL Server \uff08T-SQL\uff09\u3060\u3002<\/p>\n<p>\u25a0\u53c2\u8003URL\u306a\u3069<br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/ms184325.aspx\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/ms184325.aspx<\/a><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3068\u3066\u3082\u57fa\u672c\u7684\u306a\u3053\u3068\u306a\u3093\u3060\u3051\u308c\u3069\u30fb\u30fb\u30fb \u308f\u304b\u3089\u306a\u304f\u3066\u8abf\u3079\u305f\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002 DB\u306e\u30c7\u30fc\u30bf\u3067\u30ab\u30e9\u30e0\u306e\u5024\u304cNULL\u306e\u30c7\u30fc\u30bf\u3082\u691c\u7d22\u3057\u305f\u3044\uff01 \u305d\u3093\u306a\u3068\u304d\u306f\u3001WHERE\u53e5\u3067&#8221;IS NULL&#8221;\u3092\u4f7f\u7528\u3059\u308b\u3002 \u203b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[69],"class_list":["post-676","post","type-post","status-publish","format-standard","hentry","category-windows","category-tech-memo","tag-sql-server"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"predecessor-version":[{"id":677,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/676\/revisions\/677"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}