Copying selected tables from one user to another
I want to copy only selected table structures from one user to another user in Oracle.
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
CREATE TABLE bob.tableX AS SELECT * FROM tom.tableX;The above will create a table owned by BOB as a duplicate of the table that is currently owned by TOM. If you only want the structure and no rows of data, use the following:
CREATE TABLE bob.tableX AS SELECT * FROM tom.tableX WHERE 0=1;