{"id":1996,"date":"2013-06-12T02:49:50","date_gmt":"2013-06-12T02:49:50","guid":{"rendered":"http:\/\/www.withdata.com\/ad\/?p=1996"},"modified":"2017-04-20T11:21:06","modified_gmt":"2017-04-20T11:21:06","slug":"how-to-generate-a-create-table-statement-for-a-given-table-in-oracle","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/oracle\/how-to-generate-a-create-table-statement-for-a-given-table-in-oracle.html","title":{"rendered":"How to generate a CREATE TABLE statement for a given table in Oracle"},"content":{"rendered":"<pre>select dbms_metadata.get_ddl('TABLE', 'the_table_name', 'the_schema_name') from dual<\/pre>\n<p>Replace &#8220;the_table_name&#8221; and &#8220;the_schema_name&#8221; with yours.<\/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\/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><a href=\"http:\/\/www.withdata.com\/blog\/sqlite\/how-to-generate-a-create-table-statement-for-a-given-table-in-sqlite.html\">How to generate a CREATE TABLE statement for a given table in SQLite<\/a><\/p>\n<p>Some Oracle tools you can try: <a href=\"https:\/\/www.withdata.com\/oracle\/\"> https:\/\/www.withdata.com\/oracle\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>select dbms_metadata.get_ddl(&#8216;TABLE&#8217;, &#8216;the_table_name&#8217;, &#8216;the_schema_name&#8217;) from dual Replace &#8220;the_table_name&#8221; and &#8220;the_schema_name&#8221; with yours. 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 Mysql How to generate a CREATE TABLE statement for a given table in SQLite Some [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[269,1325],"class_list":["post-1996","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-generate-a-create-table-statement","tag-oracle"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1996","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=1996"}],"version-history":[{"count":6,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1996\/revisions"}],"predecessor-version":[{"id":6486,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1996\/revisions\/6486"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=1996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=1996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=1996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}