{"id":4847,"date":"2012-05-29T08:35:47","date_gmt":"2012-05-29T08:35:47","guid":{"rendered":"http:\/\/phpcodez.com\/?p=4847"},"modified":"2012-05-29T08:35:47","modified_gmt":"2012-05-29T08:35:47","slug":"sql-not-null","status":"publish","type":"post","link":"http:\/\/phpcodez.com\/sql-not-null\/","title":{"rendered":"SQL NOT NULL"},"content":{"rendered":"<p>SQL NOT NULL \u00a0make sure that a column does not accept null values<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>mysql&gt; CREATE TABLE \u00a0`new_users` (`id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`));<br \/>\nQuery OK, 0 rows affected (0.09 sec)<\/p>\n<p>Here the field will never have a null value<strong id=\"internal-source-marker_0.41529420716688037\"><br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL NOT NULL \u00a0make sure that a column does not accept null values Example mysql&gt; CREATE TABLE \u00a0`new_users` (`id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`)); Query OK, 0 rows affected (0.09 sec) Here the field will never have a null value<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[332,370,392,457,461],"class_list":["post-4847","post","type-post","status-publish","format-standard","hentry","category-sql","tag-mysql","tag-php","tag-query","tag-sql","tag-statement"],"_links":{"self":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/4847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/comments?post=4847"}],"version-history":[{"count":0,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/4847\/revisions"}],"wp:attachment":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/media?parent=4847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/categories?post=4847"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/tags?post=4847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}