Menu

#1032 On the fly query collation setting in sorted browse mode

open
nobody
Normal
2015-02-15
2007-05-27
No

Hi,
I'm working with database containing many different languages, so my collation is set to "utf8_general_ci". But when I browse the tables in phpMyAdmin, I'd like to be able to set sorting collation when sorting by text fields.

Example:
- Query SELECT id, text, language FROM table WHERE language = 'cs_cz';
- Then sort the string by text column. phpMyAdmin changes the query to:
SELECT id, text, language FROM table WHERE language = 'cs_cz' ORDER BY text ASC;
- I'd like to by able to select collation for this sort without manually changing the query to:
SELECT id, text, language FROM table WHERE language = 'cs_cz' ORDER BY text COLLATE utf8_czech_ci ASC;

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.