# 问题:ORA-01747: user.table.column, table.column 或列说明无效

原因:在写Mapper.xml的时候要注意SQL语句的表示符号。如下:

<insert  id="insertCustomer" parameterType="BdCustomer">
	insert into bd_customer(
		<if test="customerId != null and customerId != ''">customer_id,</if>
		<if test="customerName != null and customerName != ''">customer_name,</if>
		<if test="customerCode != null and customerCode != ''">customer_code</if>value<if test="customerId != null and customerId != ''">#{customerId},</if>
		<if test="customerName != null and customerName != ''">#{customerName},</if>
		<if test="customerCode != null and customerCode != ''">#{customerCode}</if></insert>
注意:一定要记得去掉每个括号里面最后一个字段的逗号“,”  customer_code后面去掉, #{customer_code}后面也是。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值