ErrorException: ORA-00904: : 标识符无效

今天在做插入语句的时候,发现报标识符无效的错误。

原因:字段名与系统的保留关键字重复,不能用。

解决:此时我们加一个双引号就行。

例如:INSERT into T_CYM_MDWZ (status) VALUES('1'); 错误

         INSERT into T_CYM_MDWZ ("status") VALUES('1');正确

猜你喜欢

转载自blog.csdn.net/qq_33223299/article/details/80388616