我刚刚将一个应用程序从我使用Postgres的本地实例移到了虚拟实例,在那里我使用了构建在MySQL上的。自从移动之后,这个SQL查询就不再工作了:
"UPDATE events e SET e.photographers = up.photographers FROM (VALUES "+ value_pairsError: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL</
ALL SELECT 17058 UNION ALL SELECT 38809 UNION ALL SELECT 8216 UNION ALL SELECT 5466) tt LEFT JOIN teamt on t.id = tt.team_id WHERE t.id IS NULL OR t.update_at < DATE_SUB(CURRENT_DATE, INTERVAL 7 DAY)
MySql.Data.MySqlClient.
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQLserver version for the right syntax to use near 'UNIONUPDATE staff SET staff_password = '098f6bcd4621d373cade4e832627b4f6= 'fd323219f98afd367fee99071730
如何判断MySQL更新是成功的还是实际更新的数据?示例:id city_name2 Marthasville$data = array('city_name', 'Marthasville');
//update record 2 from Marthasville to the same thing, Marthasville.//I need it to return TRUE