Skip to content

wp.jochen.hayek.name/blog-en

    • About

how can I create a copy of an Oracle table without copying the data?

Written by

johayek

in

Oracle DB, SQL
  • 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 < 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),
  • “Table“,
  • “Copy…“,
  • w/o checking “Include Data“.

Share this:

  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Press This! (Opens in new window) Press This
  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on LinkedIn (Opens in new window) LinkedIn
  • More
  • Print (Opens in new window) Print
  • Share on Telegram (Opens in new window) Telegram
  • Share on Reddit (Opens in new window) Reddit
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest

Like this:

Like Loading…
Oracle SQL Developer
←emacs table-mode: why does a kill-ring-save on a (single) cell mark the (entire) buffer as “changed”?
Oracle SQL scripts: how to use a variable for the table name→

Comments

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More posts

  • setting up VPN with my routers at home

    2026-09-23
  • BVG musicians – the community …

    2026-09-17
  • OmniSSH instead of PuTTY?

    2026-09-14
  • my Apple Watch and my router

    2026-09-10

wp.jochen.hayek.name/blog-en

Just another Jochen Hayek site

  • Blog
  • About
  • FAQs
  • Authors
  • Events
  • Shop
  • Patterns
  • Themes

Twenty Twenty-Five

Designed with WordPress

%d