Problem converting SQLite to MySQL
Posted: Thu Aug 30, 2018 9:47 pm
Hi,
For a few years I have been importing database records into SQLite using the following code.
Now this has been working great, however I have now decided to use MySQL instead, so I have setup MySQL and can happily CRUD all the single statements I like, but now coming to add multiple records as I did with SQLite (as above) I have found that it just does not work with MySQL via OBDC
Has any here managed to input multiple records using Begin/Commit transactions to a MySQL database?
PS, I have also tried a few other ways but still can not get 2 or more transactions to work
Thanks
For a few years I have been importing database records into SQLite using the following code.
Code: Select all
Query$ = "BEGIN: " + #CRLF$
Query$ = Query$ + "INSERT INTO `mytable` (`ID`, `Date_TS`, `HTeam`, `ATeam`, `FTG`, `FTA`, `FT`) VALUES (0, 1533340799, 'Jordan', 'Jack', 0, 0, 'Z');" + #CRLF$
Query$ = Query$ + "INSERT INTO `mytable` (`ID`, `Date_TS`, `HTeam`, `ATeam`, `FTG`, `FTA`, `FT`) VALUES (0, 1533340799, 'Freddy', 'Jon', 0, 0, 'Z');" + #CRLF$
Query$ = Query$ + = "commit: "
CheckDatabaseUpdate(DatabaseNumber.l, Query$)
Has any here managed to input multiple records using Begin/Commit transactions to a MySQL database?
PS, I have also tried a few other ways but still can not get 2 or more transactions to work
Thanks