Using alter command to change characgter set : COLLATION Character Set : Table MySQL TUTORIALS


MySQL TUTORIALS » Table » COLLATION Character Set »

 

Using alter command to change characgter set


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

mysql>
mysql>
mysql> ALTER TABLE myTable MODIFY col1 CHAR(50CHARACTER SET greek;
Query OK, rows affected (0.03 sec)
Records: 0  Duplicates: 0  Warnings: 0

mysql> ALTER TABLE myTable MODIFY col1 CHAR(50CHARACTER SET utf8;
Query OK, rows affected (0.03 sec)
Records: 0  Duplicates: 0  Warnings: 0

mysql>
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