:: DEVELOPER ZONE
SHOW CREATE TABLE tbl_name
Shows a CREATE TABLE statement that creates the
given table. It was added in MySQL 3.23.20. As of MySQL 5.0.1, this
statement also works with views.
mysql> SHOW CREATE TABLE t\G
*************************** 1. row ***************************
Table: t
Create Table: CREATE TABLE t (
id INT(11) default NULL auto_increment,
s char(60) default NULL,
PRIMARY KEY (id)
) TYPE=MyISAM
SHOW CREATE TABLE quotes table and column names
according to the value of the
SQL_QUOTE_SHOW_CREATE option.
Section 13.5.3, “SET Syntax”.
© 1995-2005 MySQL AB. All rights reserved.

User Comments
Warning: query failed: Unknown column 'user.firstname' in 'field list' in /data0/sites/live/web-main/lib/mysql-cxn.php on line 69
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data0/sites/live/web-main/lib/docbook.php on line 245
Add your own comment.