Autor Beitrag
Ken-san
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78

WIN: XP, 2000 LINUX: SUSE
Pascal, Delphi 5 Prof, C, C++
BeitragVerfasst: Mi 28.01.04 14:16 
Hoi
ich habe eine SQL-anweisung mit Konstaten geschrieben wo muss ich die Deklarieren oder aufführen ???? sonst bekomm ich eine Fehlermeldung in der ersagt das der Datentyp nicht bekannt ist ...

die SQL-anweisung sieht folgender maßen aus
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
select * from sar100
left join ... on ...= SAR100....
where sar100.ART <> 8
AND SAR100.NUMMER <> ' DEFAULT'
And Nummer >=:Artikelvon and Nummer <=:Artikelbis // das sind die Konstanten (Artikelvon & Artikelbis)
order by SAR100.NUMMER


Kann mir da jeamnd weiterhelfen ??? :cry:

_________________
SNAFU: Same Normal All f*** Up
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mi 28.01.04 14:38 
Hallo!

Kleine Anmerkung: Das sind keine Konstanten, sondern Parameter.

Die Parameter kannst du über die Eigenschaft TDataset.params ermitteln und bestücken. Dort gibst du dann auch den Datentyp des Parameters an.

Cu,
Udontknow
Ken-san Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78

WIN: XP, 2000 LINUX: SUSE
Pascal, Delphi 5 Prof, C, C++
BeitragVerfasst: Mi 28.01.04 15:24 
:oops:
Ja danke hat mir mein Kollege auch grade gesagt und erklärt sorry ich habe noch nicht so ein großes Grundwissen und hatte das als Konstanten im Hinterkopf :oops: Also danke


Kenny

_________________
SNAFU: Same Normal All f*** Up