{"id":4733,"date":"2012-05-28T08:53:55","date_gmt":"2012-05-28T08:53:55","guid":{"rendered":"http:\/\/phpcodez.com\/?p=4733"},"modified":"2012-05-28T08:53:55","modified_gmt":"2012-05-28T08:53:55","slug":"sql","status":"publish","type":"post","link":"http:\/\/phpcodez.com\/sql\/","title":{"rendered":"SQL"},"content":{"rendered":"<p>SQL referred to as Structured Query Language) is a special-purpose programming language designed for managing data in relational database management systems (RDBMS).<br \/>\nOriginally based upon relational algebra and tuple relational calculus its scope includes data insert, query, update and delete, schema creation and modification, and data access control.<\/p>\n<p>SQL can be divided into two parts: The Data Manipulation Language (DML) and the Data Definition Language (DDL).<\/p>\n<p>The query and update commands form the DML part of SQL:<\/p>\n<p>SELECT &#8211; extracts data from a database<br \/>\nUPDATE &#8211; updates data in a database<br \/>\nDELETE &#8211; deletes data from a database<br \/>\nINSERT INTO &#8211; inserts new data into a database<\/p>\n<p>The DDL part of SQL permits database tables to be created or deleted. It also defines indexes (keys), specifies links between tables, and imposes constraints between tables. The most important DDL statements in SQL are:<\/p>\n<p>CREATE DATABASE &#8211; creates a new database<br \/>\nALTER DATABASE &#8211; modifies a database<br \/>\nCREATE TABLE &#8211; creates a new table<br \/>\nALTER TABLE &#8211; modifies a table<br \/>\nDROP TABLE &#8211; deletes a table<br \/>\nCREATE INDEX &#8211; creates an index (search key)<br \/>\nDROP INDEX &#8211; deletes an index<strong id=\"internal-source-marker_0.25821294356137514\"><br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL referred to as Structured Query Language) is a special-purpose programming language designed for managing data in relational database management systems (RDBMS). Originally based upon relational algebra and tuple relational calculus its scope includes data insert, query, update and delete, schema creation and modification, and data access control. SQL can be divided into two parts: &hellip; <a href=\"http:\/\/phpcodez.com\/sql\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SQL<\/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-4733","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\/4733","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=4733"}],"version-history":[{"count":0,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/4733\/revisions"}],"wp:attachment":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/media?parent=4733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/categories?post=4733"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/tags?post=4733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}