I'm using Delphi 7 connecting to a MySQL database via BDE (I know, stone age).
Well, I'm trying to populate the Tquery object with more than one SQL statement and it's giving me errors. I thought maybe I needed to include the semicolon, but no luck. It works fine with only one line.
The lines I'm adding are inserts, I'm using datamodule.query.sql.add() in a buttonclick routine and then running the whole query at the end. I'm sure it's possible to do with a loop, but I'm being lazy.
So is there any way to run multiple inserts in one Tquery object?
Well, I'm trying to populate the Tquery object with more than one SQL statement and it's giving me errors. I thought maybe I needed to include the semicolon, but no luck. It works fine with only one line.
The lines I'm adding are inserts, I'm using datamodule.query.sql.add() in a buttonclick routine and then running the whole query at the end. I'm sure it's possible to do with a loop, but I'm being lazy.
So is there any way to run multiple inserts in one Tquery object?