{"id":4750,"date":"2012-05-28T09:26:36","date_gmt":"2012-05-28T09:26:36","guid":{"rendered":"http:\/\/phpcodez.com\/?p=4750"},"modified":"2012-05-28T09:26:36","modified_gmt":"2012-05-28T09:26:36","slug":"sql-where","status":"publish","type":"post","link":"http:\/\/phpcodez.com\/sql-where\/","title":{"rendered":"SQL WHERE"},"content":{"rendered":"<p>It select the data based on the condition given .<\/p>\n<p><strong>SQL WHERE Syntax<\/strong><\/p>\n<p>SELECT column_name(s) FROM table_name WHERE column_name operator value ;<\/p>\n<p><strong>MySQL Table &#8211; users<\/strong><\/p>\n<p>+&#8212;-+&#8212;&#8212;+<br \/>\n| id | name |<br \/>\n+&#8212;-+&#8212;&#8212;+<br \/>\n| \u00a01 | PHP \u00a0|<br \/>\n| \u00a02 | JS \u00a0\u00a0|<br \/>\n| \u00a03 | HTML |<br \/>\n| \u00a04 | PHP \u00a0|<br \/>\n+&#8212;-+&#8212;&#8212;+<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>mysql&gt; select * from users where name=&#8217;PHP&#8217;;<br \/>\n+&#8212;-+&#8212;&#8212;+<br \/>\n| id | name |<br \/>\n+&#8212;-+&#8212;&#8212;+<br \/>\n| \u00a01 | PHP \u00a0|<br \/>\n| \u00a04 | PHP \u00a0|<br \/>\n+&#8212;-+&#8212;&#8212;+<br \/>\n2 rows in set (0.00 sec)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It select the data based on the condition given . SQL WHERE Syntax SELECT column_name(s) FROM table_name WHERE column_name operator value ; MySQL Table &#8211; users +&#8212;-+&#8212;&#8212;+ | id | name | +&#8212;-+&#8212;&#8212;+ | \u00a01 | PHP \u00a0| | \u00a02 | JS \u00a0\u00a0| | \u00a03 | HTML | | \u00a04 | PHP \u00a0| +&#8212;-+&#8212;&#8212;+ Example &hellip; <a href=\"http:\/\/phpcodez.com\/sql-where\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SQL WHERE<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/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-4750","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\/4750","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=4750"}],"version-history":[{"count":0,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/4750\/revisions"}],"wp:attachment":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/media?parent=4750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/categories?post=4750"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/tags?post=4750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}