0

在做一个mysqlSORT BY标题时,我得到以下结果:

#314: Basket Case
$1.2 Billion Scam: Ft. Frauderdale
(Dis)Members Only
- M -
...And Something Makes 3
3:10 to Yuma (2007)

我将如何忽略特殊字符,因此结果将按如下方式排序:

$1.2 Billion Scam: Ft. Frauderdale
3:10 to Yuma (2007)
#314: Basket Case
...And Something Makes 3
(Dis)Members Only
- M -
4

1 回答 1

0

嵌套替换以实现没有特殊字符的列,像这样丑陋的东西

SELECT REPLACE(REPLACE(field, '.', ''), '#', '') AS fld
FROM table
ORDER BY fld
于 2013-05-13T00:59:01.557 回答