Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Generating CREATE TABLE statements

Re: Generating CREATE TABLE statements

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 30 Jan 2006 09:10:18 -0800
Message-ID: <1138641014.934180@jetspin.drizzle.com>


Jack Miller wrote:
> Hi,
>
> Is there any SQL command in Oracle that returns a "CREATE TABLE"
> statement in Oracle. For example in MySQL there is a command called
>
> "SHOW CREATE TABLE <tableName>"
>
> This command can be sent from any client and it returns the script for
> the table.
>
> Thanks

Please do not feel compelled to multipost to every usenet group you can spell.

SELECT dbms_metadata.get_data('TABLE', '<you_table_name>') FROM dual;

Demos of the dbms_metadata package can be found in Morgan's Library at www.psoug.org.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Mon Jan 30 2006 - 11:10:18 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US