Execute multiple MySQL commands

Ludovic THEBAULT ludovic.thebault at laposte.net
Thu Feb 8 05:24:50 EST 2018


I’ve an « syntax error » as result if i want to execute multiple MySQL commands, even with transactions.

It is normal ? If i execute one command at time, it’s work.

Thanks !

Here a sample script :

revExecuteSQL tDatabaseID,"BEGIN TRANSACTION »

put "INSERT INTO savemyTable (column1) VALUES (1)  & ";" & cr into tSQL

put "DELETE FROM myTable WHERE id = " & id & ";" & cr after tSQL

revExecuteSQL tDatabaseID, tSQL

if the result is not an integer then answer the result

else …// COMMIT

More information about the Use-livecode mailing list