Database, Table, and Column Definition with Character and collate : Create Database « Database « MySQL Tutorial






mysql>
mysql> CREATE DATABASE myDatabase DEFAULT CHARACTER SET latin2 COLLATE latin2_czech_ci;
Query OK, 1 row affected (0.02 sec)

mysql>
mysql> 
mysql>
mysql> USE myDatabase;
Database changed
mysql>
mysql> CREATE TABLE myTable
    -> (
    ->     c1 CHAR(10)
    -> );
Query OK, 0 rows affected (0.03 sec)

mysql>
mysql> drop table myTable;
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> drop database myDatabase;
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> use test;
Database changed








3.1.Create Database
3.1.1.Create a database
3.1.2.Creating a database does not select it for use
3.1.3.Database, Table, and Column Definition with Character and collate