Neil Toulouse
Programmer
I have written an upsize routine in VFP to upload data to SQL Server, which works fine. Basically I create a MEMO of 200 INSERT INTO statements and SQLEXEC() them in one go, so, for example the line would parse as:
SQLEXEC( nHandle, 'INSERT INTO table VALUES (1);INSERT INTO table VALUES (2)')
...which works fine. If I adopt the same approach with MySQL, I receive an error on the second INSERT, indicating that there is an issue with the ';'.
I have obviously got around the problem with just parsing single INSERT INTO statements, but shouldn't it work? All the MySQL documentation indicate that it will accept multiple statements with ';' separating them.
Has anyone else come across this problem?
I posted a similar thread in the MySQL forum but have yet received no replies!
Let me know what you think...
SQLEXEC( nHandle, 'INSERT INTO table VALUES (1);INSERT INTO table VALUES (2)')
...which works fine. If I adopt the same approach with MySQL, I receive an error on the second INSERT, indicating that there is an issue with the ';'.
I have obviously got around the problem with just parsing single INSERT INTO statements, but shouldn't it work? All the MySQL documentation indicate that it will accept multiple statements with ';' separating them.
Has anyone else come across this problem?
I posted a similar thread in the MySQL forum but have yet received no replies!
Let me know what you think...