MySQL命令由字母数字(Numers,大写字母然后小写)

时间:2015-06-26 09:21:03

标签: mysql binary-search alphanumeric

我如何在MySQL中按数字,大写字母和最后小写字母排序?

这是我目前的表格:

24RpS8wYitPWHnAMp
25xa2RpBh28CjQcnk
27WkTQiFNuxbfXZgG
288vdizSY4G6yBdMT
28A2hedvGvGpBNwKu
28A2hedvGvGpBNwKu
2a5tTwyMBxmjety99
2a5tTwyMBxmjety99
2a5tTwyMBxmjety99
2a5tTwyMBxmjety99
2B7a4TGCGBYnQ8JJM
2B7a4TGCGBYnQ8JJM
2eWFRNrxKe4K472DJ
2FW2JJEoRjn6ddCkv

我想要这样:

24RpS8wYitPWHnAMp
25xa2RpBh28CjQcnk
27WkTQiFNuxbfXZgG
288vdizSY4G6yBdMT
28A2hedvGvGpBNwKu
28A2hedvGvGpBNwKu
2B7a4TGCGBYnQ8JJM
2B7a4TGCGBYnQ8JJM
2FW2JJEoRjn6ddCkv
2a5tTwyMBxmjety99
2a5tTwyMBxmjety99
2a5tTwyMBxmjety99
2a5tTwyMBxmjety99
2eWFRNrxKe4K472DJ

我发现了这个:http://www.essentialsql.com/use-sql-server-to-sort-alphanumeric-values/

但我不能在MySQL中使用PATINDEX函数..

0 个答案:

没有答案