Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Is there a mysql equivalent of show create table in postgres???

0

70 views

Hi, is there a mysql equivalent of SHOW CREATE TABLE in postgres? Is this possible? If not what is the next best solution?

I need the statement because I use it to create the table on an remote server (over WCF).

Thanks, Vasja

asked February 6, 2011 3:49 pm CST
posted via ServerFault

2 Answers

1
 

pg_dump:

pg_dump --schema-only -t tablename

or use PostgreSQL GUI Tools(pgAdmin,phpPgAdmin,etc.)

answered February 6, 2011 4:23 pm CST
0
 

You can try to trace in the PostgreSQL log file what "pg_dump -t table -s" really does.Then you can use the same method to write your own sql function.

answered February 7, 2011 1:39 am CST
RJS

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions