Table and Column Definition with character and collate : Create Table : Table MySQL TUTORIALS


MySQL TUTORIALS » Table » Create Table »

 

Table and Column Definition with character and collate


mysql>
mysql> CREATE TABLE myTable
    -> (
    ->     c1 CHAR(10)
    -> DEFAULT CHARACTER SET latin1 COLLATE latin1_danish_ci;
Query OK, rows affected (0.03 sec)

mysql>
mysql> desc myTable;
+-------+----------+------+-----+---------+-------+
| Field | Type     | Null | Key | Default | Extra |
+-------+----------+------+-----+---------+-------+
| c1    | char(10| YES  |     | NULL    |       |
+-------+----------+------+-----+---------+-------+
row in set (0.00 sec)

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

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Table
» Create Table