这句 SQL 语句有错吗?

insert into scheduling (classNumb,departent,course,number,maxofs,room,capacity,insname,insid,mtime,mid,addtime)  + 
            "VALUES(#{classNumb},#{departent},#{course},#{number},#{maxofs},#{room},#{capacity},#{insname},#{insid},#{mtime},#{mid},NOW()"

缺少右括号,应该是:

insert into scheduling (classNumb,departent,course,number,maxofs,room,capacity,insname,insid,mtime,mid,addtime)
VALUES(#{classNumb},#{departent},#{course},#{number},#{maxofs},#{room},#{capacity},#{insname},#{insid},#{mtime},#{mid},NOW())
SQL 语句错误分析:缺少右括号

原文地址: https://www.cveoy.top/t/topic/m5gd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录