{"id":5435,"date":"2016-10-21T09:46:01","date_gmt":"2016-10-21T09:46:01","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=5435"},"modified":"2017-04-20T11:11:25","modified_gmt":"2017-04-20T11:11:25","slug":"how-to-generate-a-create-table-statement-for-a-given-table-in-sqlite","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/sqlite\/how-to-generate-a-create-table-statement-for-a-given-table-in-sqlite.html","title":{"rendered":"How to generate a CREATE TABLE statement for a given table in SQLite"},"content":{"rendered":"<p><code>select sql from sqlite_master\u00a0where\u00a0type='table' and tbl_name='country'<\/code><\/p>\n<p>See also:<\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/sql-server\/how-to-generate-a-create-table-statement-for-a-given-table-in-sql-server.html\">How to generate a CREATE TABLE statement for a given table in SQL Server<\/a><\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/oracle\/how-to-generate-a-create-table-statement-for-a-given-table-in-oracle.html\">How to generate a CREATE TABLE statement for a given table in Oracle<\/a><\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/mysql\/how-to-generate-a-create-table-statement-for-a-given-table-in-mysql.html\">How to generate a CREATE TABLE statement for a given table in Mysql<\/a><\/p>\n<p>Some SQLite tools you can try: <a href=\"https:\/\/www.withdata.com\/sqlite\/\"> https:\/\/www.withdata.com\/sqlite\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>select sql from sqlite_master\u00a0where\u00a0type=&#8217;table&#8217; and tbl_name=&#8217;country&#8217; See also: How to generate a CREATE TABLE statement for a given table in SQL Server How to generate a CREATE TABLE statement for a given table in Oracle How to generate a CREATE TABLE statement for a given table in Mysql Some SQLite tools you can try: https:\/\/www.withdata.com\/sqlite\/<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[429],"tags":[1718,1369],"class_list":["post-5435","post","type-post","status-publish","format-standard","hentry","category-sqlite","tag-ddl","tag-sqlite"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/5435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=5435"}],"version-history":[{"count":3,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/5435\/revisions"}],"predecessor-version":[{"id":6465,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/5435\/revisions\/6465"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=5435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=5435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=5435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}