Autor Beitrag
Dhakiyah
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 327
Erhaltene Danke: 5

Windows 7
Delphi XE2
BeitragVerfasst: Mi 17.02.10 09:57 
Hallo!
Habe folgendes Problem. Programmiere was kleines in Delphi mit ADO.
Jetzt habe ich folgendes SQL-Statement:

ausblenden SQL-Anweisung
1:
2:
3:
select name, vorname
from mitarbeiter
where m_id = :mid


In Oracle würde das gehen. Muss aber für die Schule was in MySQL machen. Wenn ich dieses Statement im Toad for MySQL ausführe gehts, allerdings kreidet er mir einen Syntax-Fehler an...

Versuche ich nun über Delphi den Parameter zu übergeben, kommt der Fehler: mid nicht gefunden...

Also wie mache ich das jetzt?

_________________
Es ist soooo flauschig !!!
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 17.02.10 10:08 
user profile iconDhakiyah hat folgendes geschrieben Zum zitierten Posting springen:
Also wie mache ich das jetzt?

Indem du uns den Code zeigst, wie du das in Delphi aufrufst.
Eigentlich sollte das so gehen, mit dem Parameter.

_________________
PROGRAMMER: A device for converting coffee into software.
Dhakiyah Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 327
Erhaltene Danke: 5

Windows 7
Delphi XE2
BeitragVerfasst: Mi 17.02.10 13:02 
Ich hatte es glaube ich über:
ausblenden Delphi-Quelltext
1:
parameters.parambyname('mid').AsString := '1';					
oder so ähnlich...

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt

_________________
Es ist soooo flauschig !!!