I am successfully using TEXT....ENDTEXT to send single commands to a MySql backend. My question is whether it is possible to send multiple commands with one TEXT...ENDTEXT construct (probably not?). Example :
** connection to MySql already verified and labelled as "nH_LS"
The following works:
TEXT TO cSql NOSHOW
UPDATE table1 SET column1 = 'aaa'
ENDTEXT
nSql = SQLEXEC(nH_LS, cSql)
TEXT TO cSql NOSHOW
UPDATE table2 SET column1 = 'bbb'
ENDTEXT
nSql = SQLEXEC(nH_LS, cSql)
The following does not work:
TEXT TO cSql NOSHOW
UPDATE table1 SET column1 = 'aaa';
UPDATE table2 SET column1 = 'bbb'
ENDTEXT
nSql = SQLEXEC(nH_LS, cSql)
** connection to MySql already verified and labelled as "nH_LS"
The following works:
TEXT TO cSql NOSHOW
UPDATE table1 SET column1 = 'aaa'
ENDTEXT
nSql = SQLEXEC(nH_LS, cSql)
TEXT TO cSql NOSHOW
UPDATE table2 SET column1 = 'bbb'
ENDTEXT
nSql = SQLEXEC(nH_LS, cSql)
The following does not work:
TEXT TO cSql NOSHOW
UPDATE table1 SET column1 = 'aaa';
UPDATE table2 SET column1 = 'bbb'
ENDTEXT
nSql = SQLEXEC(nH_LS, cSql)