MySQL - CREATE DATABASE
CREATE DATABASE [IF NOT EXISTS] mydb CHARACTER SET utf8 COLLATE utf8_danish_ci

The IF NOT EXISTS clause can be useful in applications that needs to ensure that a given database is available, without disrupting any existing database with the same name.

The CREATE DATABASE statement has two optional clauses, CHARACTER SET and COLLATE. These settings are stored in db.opt in the database directory.

page_revision: 0, last_edited: 1230333346|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License