2021-04-07 11:57
sql:Db.use("np3").update(
"DELETE FROM np_media_thirdpart_user m WHERE m.enterprise_id =? AND m.user_id =? AND m.media_id IN (SELECT id FROM np_media_thirdpart WHERE enterprise_id = m.enterprise_id AND module =?)",
eid, uid, module); 我本地运行可以,但是服务器上报错,错误信息如下:com.jfinal.plugin.activerecord.ActiveRecordException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mu where mu.enterprise_id=101 and mu.user_id=372140 and mu.media_id in (select i' at line 1
2017-09-26 19:36
@JFinal 好的,谢谢
2017-09-26 16:52
@JFinal 也就是说如果要用JFinal的上传模式,就必须要设置请求类型为post且enctype为"multipart/form-data"。