第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

關(guān)于Mybatis中的SQL語句報錯

關(guān)于Mybatis中的SQL語句報錯

Kurama丶 2020-03-04 17:15:04
提示是OrderMapper.XML中的insertSelective出錯 報錯信息: ????org.springframework.jdbc.BadSqlGrammarException:? ###?Error?updating?database.??Cause:?java.sql.SQLSyntaxErrorException:?You?have?an?error?in?your?SQL?syntax;?check?the?manual?that?corresponds?to?your?MySQL?server?version?for?the?right?syntax?to?use?near?''?at?line?1 ###?The?error?may?exist?in?file?[E:\myProject\mall\target\classes\mapper\OrderMapper.xml] ###?The?error?may?involve?com.example.mall.dao.OrderMapper.insertSelective-Inline ###?The?error?occurred?while?setting?parameters ###?SQL:?insert?into?mall_order ###?Cause:?java.sql.SQLSyntaxErrorException:?You?have?an?error?in?your?SQL?syntax;?check?the?manual?that?corresponds?to?your?MySQL?server?version?for?the?right?syntax?to?use?near?''?at?line?1 ;?bad?SQL?grammar?[];?nested?exception?is?java.sql.SQLSyntaxErrorException:?You?have?an?error?in?your?SQL?syntax;?check?the?manual?that?corresponds?to?your?MySQL?server?version?for?the?right?syntax?to?use?near?''?at?line?1 <insert?id="insertSelective"?parameterType="com.example.mall.pojo.Order"> ??insert?into?mall_order ??<trim?prefix="("?suffix=")"?suffixOverrides=","> ????<if?test="id?!=?null"> ??????id, ????</if> ????<if?test="orderNo?!=?null"> ??????order_no, ????</if> ????<if?test="userId?!=?null"> ??????user_id, ????</if> ????<if?test="shippingId?!=?null"> ??????shipping_id, ????</if> ????<if?test="payment?!=?null"> ??????payment, ????</if> ????<if?test="paymentType?!=?null"> ??????payment_type, ????</if> ????<if?test="postage?!=?null"> ??????postage, ????</if> ????<if?test="status?!=?null"> ??????status, ????</if> ????<if?test="paymentTime?!=?null"> ??????payment_time, ????</if> ????<if?test="sendTime?!=?null"> ??????send_time, ????</if> ????<if?test="endTime?!=?null"> ??????end_time, ????</if> ????<if?test="closeTime?!=?null"> ??????close_time, ????</if> ????<if?test="createTime?!=?null"> ??????create_time, ????</if> ????<if?test="updateTime?!=?null"> ??????update_time, ????</if> ??</trim> ??<trim?prefix="values?("?suffix=")"?suffixOverrides=","> ????<if?test="id?!=?null"> ??????#{id,jdbcType=INTEGER}, ????</if> ????<if?test="orderNo?!=?null"> ??????#{orderNo,jdbcType=BIGINT}, ????</if> ????<if?test="userId?!=?null"> ??????#{userId,jdbcType=INTEGER}, ????</if> ????<if?test="shippingId?!=?null"> ??????#{shippingId,jdbcType=INTEGER}, ????</if> ????<if?test="payment?!=?null"> ??????#{payment,jdbcType=DECIMAL}, ????</if> ????<if?test="paymentType?!=?null"> ??????#{paymentType,jdbcType=INTEGER}, ????</if> ????<if?test="postage?!=?null"> ??????#{postage,jdbcType=INTEGER}, ????</if> ????<if?test="status?!=?null"> ??????#{status,jdbcType=INTEGER}, ????</if> ????<if?test="paymentTime?!=?null"> ??????#{paymentTime,jdbcType=TIMESTAMP}, ????</if> ????<if?test="sendTime?!=?null"> ??????#{sendTime,jdbcType=TIMESTAMP}, ????</if> ????<if?test="endTime?!=?null"> ??????#{endTime,jdbcType=TIMESTAMP}, ????</if> ????<if?test="closeTime?!=?null"> ??????#{closeTime,jdbcType=TIMESTAMP}, ????</if> ????<if?test="createTime?!=?null"> ??????#{createTime,jdbcType=TIMESTAMP}, ????</if> ????<if?test="updateTime?!=?null"> ??????#{updateTime,jdbcType=TIMESTAMP}, ????</if> ??</trim> </insert>
查看完整描述

2 回答

?
柳太爺

TA貢獻(xiàn)46條經(jīng)驗(yàn) 獲得超4個贊

需要看文件,這樣看不出來

查看完整回答
反對 回復(fù) 2020-03-05
?
柳太爺

TA貢獻(xiàn)46條經(jīng)驗(yàn) 獲得超4個贊

是執(zhí)行的時候報的錯嗎

查看完整回答
反對 回復(fù) 2020-03-05
  • 2 回答
  • 0 關(guān)注
  • 1410 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號