PDA

View Full Version : การแปลง charset, collation ใน mysql



newsbot
08-04-2006, 02:54 PM
เป็นการแปลง Charset/Collate ของ table ที่เราต้องการ
ALTER TABLE tbl_name CHARACTER SET utf8 COLLATE utf8_thai_ci;

คล้ายกับอันแรกแต่จะแปลง column ทั้งหมดใน table นั้นด้วย
ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_thai_ci;