{"id":9410,"date":"2018-01-15T15:09:42","date_gmt":"2018-01-15T14:09:42","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=9410"},"modified":"2018-01-15T15:09:42","modified_gmt":"2018-01-15T14:09:42","slug":"oracle-copy-table","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2018\/01\/15\/oracle-copy-table\/","title":{"rendered":"how can I create a copy of an Oracle table without copying the data?"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/233870\/how-can-i-create-a-copy-of-an-oracle-table-without-copying-the-data#233890\">https:\/\/stackoverflow.com\/questions\/233870\/how-can-i-create-a-copy-of-an-oracle-table-without-copying-the-data#233890<\/a><\/li>\n<\/ul>\n<pre>create table xyz_new as select * from xyz where rownum &lt; 0;<\/pre>\n<p>In Oracle SQL Developer<\/p>\n<ul>\n<li>use the menu-function (maybe right-click) on the table you want to operate on (i.e. that you want to copy),<\/li>\n<li>&#8220;<em>Table<\/em>&#8220;,<\/li>\n<li>&#8220;<em>Copy\u2026<\/em>&#8220;,<\/li>\n<li><span style=\"text-decoration: underline\">w\/o<\/span> checking &#8220;<em>Include Data<\/em>&#8220;.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/stackoverflow.com\/questions\/233870\/how-can-i-create-a-copy-of-an-oracle-table-without-copying-the-data#233890 create table xyz_new as select * from xyz where rownum &lt; 0; In Oracle SQL Developer use the menu-function (maybe right-click) on the table you want to operate on (i.e. that you want to copy), &#8220;Table&#8220;, &#8220;Copy\u2026&#8220;, w\/o checking &#8220;Include Data&#8220;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[821,562],"tags":[1206],"class_list":["post-9410","post","type-post","status-publish","format-standard","hentry","category-oracle-db","category-sql","tag-oracle-sql-developer"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-2rM","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/9410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=9410"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/9410\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=9410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=9410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=9410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}