Aug
09
2010

MySQL เรียงข้อมูลภาษาไทยกับ UTF8

2,047 views

ดูข้อมูล charset
SELECT CHARSET(my_column1) FROM `test`

เรียงข้อมูลโดยการแปลงไปเป็น tis620
SELECT * FROM `test` ORDER BY CONVERT( my_column1 USING tis620 ) ASC

อ่านเพิ่มเติม


Written by Pipo in: MySQL |

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Page 1 of 11

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes