Spec-Zone .ru
спецификации, руководства, описания, API

13.7.5.8. SHOW CREATE DATABASE Syntax

SHOW CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name

Shows the CREATE DATABASE statement that creates the given database. If the SHOW statement includes an IF NOT EXISTS clause, the output too includes such a clause. SHOW CREATE SCHEMA is a synonym for SHOW CREATE DATABASE.

mysql> SHOW CREATE DATABASE test\G*************************** 1. row ***************************       Database: testCreate Database: CREATE DATABASE `test`                 /*!40100 DEFAULT CHARACTER SET latin1 */mysql> SHOW CREATE SCHEMA test\G*************************** 1. row ***************************       Database: testCreate Database: CREATE DATABASE `test`                 /*!40100 DEFAULT CHARACTER SET latin1 */

SHOW CREATE DATABASE quotes table and column names according to the value of the sql_quote_show_create option. See Section 5.1.4, "Server System Variables".