ich versuche eine Tabell abzudaten
Code: Alles auswählen
cStmt := "UPDATE auftrag SET (docid,xml1) VALUES (?,?) WHERE auftrag.id = 11128;"
aData := {11128,'asdfasdf'}
oStmt:SQLString := cStmt
oStmt:Prepare()
nResult := oStmt:Execute(aData )
MySQL][ODBC 3.51 Driver][mysqld-5.1.73]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 '(docid,xml1) VALUES (66878,'asdfasdf' at line 1
Stimmt etwas mit meinem Statement nicht ? Ein Insert in die Tabelle funktioniert auf diese Art:
Code: Alles auswählen
cStmt := 'INSERT INTO auftrag (id,docid,xml1) VALUES (?,?,?);"
Rudolf