Einzelnen Beitrag anzeigen

NormanNG

Registriert seit: 1. Feb 2006
294 Beiträge
 
Delphi 2007 Professional
 
#19

Re: Abfrage nach Last_Insert_ID() funkt. nicht

  Alt 12. Feb 2008, 11:04
Hi,

Zitat:
'You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ';
meint ja evtl., das die Semikolons am Ende der SQL-Zeilen einfach da nicht hingehören?

SQL-Code:
SQLQuery.SQL.Add('INSERT INTO tb_routes (Date, CarID) VALUES (:Date, :CarID);');
SQLQuery.SQL.Add('SELECT LAST_INSERT_ID() FROM tb_routes Limit 1;');
Gruß
Norman
  Mit Zitat antworten Zitat