sql - 甲骨文 ORA-00933 : SQL command not properly ended?

标签 sql eclipse oracle sql-update ora-00933

我一直收到这个错误。
我该如何解决这个问题?

错误:

java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended

代码:

<update id="updateProc" parameterClass="rating">
 update rating set
 rating_title=#rating_title#
 rating_cont=#rating_cont#
 where mem_id=#mem_id# 
 and rating_code=#rating_code#         
</update>   

最佳答案

请将 , 放在 Set 子句的列之间,例如:

update rating set rating_title=#rating_title#, rating_cont=#rating_cont#
where mem_id=#mem_id# and rating_code=#rating_code#

关于sql - 甲骨文 ORA-00933 : SQL command not properly ended?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22325809/

相关文章:

python - 在 Eclipse 中设置 Python 解释器

sql - 为什么 where 子句中不允许使用聚合函数

sql - 在 shell 管道中转义 SQL 参数

mysql - 获取表中每个组的最大值

eclipse - web.xml 丢失且 <failOnMissingWebXml> 设置为 true

SQL - 标识符无效,但在哪里?

java - 我如何使用 Hibernate/JPA 在插入/更新/删除之前告诉数据库用户是谁?

sql - 我可以在 SQL Server 2012 中的多个列上创建索引吗?

mysql - 在 WHERE 子句中使用来自 COALESCE 的别名来自 SELECT

java - : "Resolver". java.lang.NullPointerException 期间发生内部错误