您的位置:首页 > 数据库

初学 template.update里的SQL语句(引号内),不能用分号结束

2012-09-04 10:03 337 查看
template.update("insert into wrm_mtl_uom_classes_tl t (uom_class_id,uom_class,uom_class_tl,last_update_date,t.last_updated_by,t.creation_date,t.created_by) select 1,'length','length',sysdate,'manager',sysdate,'manager' from dual");

  

 

要不报错org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar

nested exception is java.sql.SQLException: ORA-00911: invalid character
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息