Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 19.03.06 17:32 
Hallo.

Ich versuche in deinrFirebird Tabelle alle Datensätze aus dem März zu bekommen.
ausblenden SQL-Anweisung
1:
Select * FROM Krist where (EXTRACT(MONTH from date) = 3)					

Aber das funktioniert nicht. Ich bekomme als Fehlermeldung immer
ausblenden Quelltext
1:
2:
3:
4:
5:
Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Token unknown - line 1, char 1.
EXTRACT.


An was leigt das ? Wie kann ich sonst den Monat aus einem Datum extrahieren ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 19.03.06 19:51 
Habe das problem slbst gefunden. date ist ein reserviertes Wort und durfte nicht als Spaltenname genommen werden.

_________________
In the beginning was the word.
And the word was content-type: text/plain.