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_at_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.

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

[Quoted] 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 - 18:10:18 CET

Original text of this message