[MySQL] Change Collation in Database

ID Topic: 25127 • Có 964 lượt xem
Hình đại diện của thành viên
#1 - @292932
17/02/2014 03:07
You'll simply need to run an ALTER on each of the tables as follows:

Mã:ALTER TABLE <table name> COLLATE utf8_general_ci;

If you also need to update the existing character encoding (unlikely by the sounds of things), you can use:

Mã:ALTER TABLE <table name> CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
(Firefox 27.0)
PM|Trích|Like|Sửa|Xóa|Báo cáo|Cảnh cáo
_______________
Diễn đàn chia sẻ kiến thức máy tính:
KETNOI123.COM

Ấn hiện ra để xem chữ ký của mình:
Trả lời nhanh

Chủ đề tương tự