VFP 9 - SQL语法中的MySql错误

时间:2015-05-20 14:23:09

标签: mysql visual-foxpro

从VFP 9连接到MySql

lnTestForExisting=SQLEXEC(m.WorkingDatabase, "SELECT student_id, date_treated, where_treated, treatment, id AS CloudId ; FROM medical WHERE school_id=?lcSchoolId AND downloaded_to_desktop!='Y'","StudentsMedFromServer")

工作精细数据就像我应该使用此时将更新发送回服务器时那样下载

lnGoodServerUpdate=SQLEXEC(m.WorkingDatabase,"UPDATE SET medical downloaded_to_desktop='Y' WHERE SchoolId=?ServerSchoolId and id=?lnCloudId")

生成语法错误,并说错误在Where子句附近 - 在ServerSchoolId中的值被报告为_lati(然后它被切断我认为这个词是_latin)

TIA

0 个答案:

没有答案