{"id":1033,"date":"2010-12-31T09:13:04","date_gmt":"2010-12-31T09:13:04","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1033"},"modified":"2010-12-31T09:13:04","modified_gmt":"2010-12-31T09:13:04","slug":"mysql-data-definition-language-ddl-commands","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2010\/12\/mysql-data-definition-language-ddl-commands\/","title":{"rendered":"MYSQL data definition language (DDL) commands?"},"content":{"rendered":"<p>Data Definition Language (DDL)<\/p>\n<p>DDL statements are used to define and modify the database structure of your tables or schema. When you execute a DDL statement, it takes effect immediately.<br \/>\nSome commands of DDL are:<\/p>\n<pre lang=\"mysql\">\r\n1. CREATE - to create table (objects) in the database\r\n2. ALTER - alters the structure of the database\r\n3. DROP - delete table from the database\r\n4. TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed\r\n5. COMMENT - add comments to the data dictionary\r\n6. RENAME - rename a table\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Data Definition Language (DDL) DDL statements are used to define and modify the database structure of your tables or schema. When you execute a DDL statement, it takes effect immediately. Some commands of DDL are: 1. CREATE &#8211; to create table (objects) in the database 2. ALTER &#8211; alters the structure of the database 3. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1033","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=1033"}],"version-history":[{"count":1,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1033\/revisions"}],"predecessor-version":[{"id":1034,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1033\/revisions\/1034"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}