Table and Column Definition with character and collate : COLLATION Character Set : Table MySQL TUTORIALS


MySQL TUTORIALS » Table » COLLATION Character Set »

 

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
» COLLATION Character Set