Einzelnen Beitrag anzeigen

BlueStarHH

Registriert seit: 28. Mär 2005
Ort: Hannover-Hainholz
801 Beiträge
 
Delphi 11 Alexandria
 
#3

AW: VarChar-Feld numerisch sortieren

  Alt 7. Mär 2018, 10:40
Danke!

Nun hab ich aber noch ein Problem. Ich benötige das auch für ein ASCII-Feld:

Das Feld ist so definiert:

SQL-Code:
CREATE TABLE MyTable (
    MyCol VARCHAR(10) CHARACTER SET ASCII,
   ...
)
Ich möchte das dann so nutzen:

select * from MyTable order by ASCII_NUM

ASCII_NUM versuche ich so anzulegen:

SQL-Code:
create collation ASCII_NUM for ASCII
from ASCII 'NUMERIC-SORT=1';
Ergibt den Fehler:

Code:
This operation is not defined for system tables. unsuccessful metadata update. Invalid collation attributes.
Im IBExpert wird angezeigt, dass die collation auch ASCII heißt, die zum Character-Set ASCII gehört. Stimmt das nicht?!

Geändert von BlueStarHH ( 7. Mär 2018 um 10:47 Uhr)
  Mit Zitat antworten Zitat