TEXT CHARACTER SET latin1 COLLATE latin1_bin : COLLATION Character Set : Table MySQL TUTORIALS


MySQL TUTORIALS » Table » COLLATION Character Set »

 

TEXT CHARACTER SET latin1 COLLATE latin1_bin


mysql>
mysql>
mysql> CREATE TABLE myTable
    -> (
    ->    ID SMALLINT UNSIGNED,
    ->    Name VARCHAR(40),
    ->    Description TEXT CHARACTER SET latin1 COLLATE latin1_bin
    -> );
Query OK, rows affected (0.03 sec)

mysql>
mysql> desc myTable;
+-------------+----------------------+------+-----+---------+-------+
| Field       | Type                 | Null | Key | Default | Extra |
+-------------+----------------------+------+-----+---------+-------+
| ID          | smallint(5unsigned | YES  |     | NULL    |       |
| Name        | varchar(40)          | YES  |     | NULL    |       |
| Description | text                 | YES  |     | NULL    |       |
+-------------+----------------------+------+-----+---------+-------+
rows in set (0.01 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