首页 > 其他分享 >SpringBoot+Mybatis-Plus 数据表字段是关键字的问题解决

SpringBoot+Mybatis-Plus 数据表字段是关键字的问题解决

时间:2022-09-27 08:55:58浏览次数:51  
标签:SpringBoot 关键字 Plus Mybatis table 字段名

如果字段名是关键字,用mybatisplus时会报以下错误:
bad SQL grammar []; nested exception is java.sql.BatchUpdateException: ORA-01747: user.table.column, table.column 或列说明无效
解决方法:在字段名前后加上[``]
@TableField("MODE")
private String mode;

标签:SpringBoot,关键字,Plus,Mybatis,table,字段名
From: https://www.cnblogs.com/tangtang-benben/p/16733227.html

相关文章