Shopsystem ShopPilot
ShopPilot => SSP - Shop Server Pages => Thema gestartet von: dobra am Oktober 27, 2015, 19:18:29
-
Wenn man Zahlen in ben.def Feldern mit "ORDER BY" sortieren will, hat man das Problem dass 11 kleiner als 9 ist :(
1
226
3
4
56
673
7
usw
Abhilfe:
statt
ORDER BY <Textfeld> ASC/DESC
schreibt man
ORDER BY CONVERT (<Textfeld>, DECIMAL) ASC/DESC
so werden dann Zahlen auch in Textfeldern korrekt sortiert
im Beispiel:
1
3
4
7
56
226
673