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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

結(jié)果顯示sql語句不對(duì) 不知道為什么 求解

結(jié)果顯示sql語句不對(duì) 不知道為什么 求解

慕粉1469110649 2016-08-04 19:45:13
我寫的部分代碼?sb.append("select * from imooc_goddess where 1=1"); //sb.append(" where user_name like ? and mobile like ?"); if(params!=null &&params.size()>0){ for (int i = 0; i < params.size(); i++) { Map<String,Object> map=params.get(i); sb.append(" and "+map.get("name")+" "+map.get("rela")+" "+map.get("value")+" "); }顯示結(jié)果select * from imooc_goddess where 1=1 and user_name = '小美'  and mobile = '18451922609' Exception in thread "main" com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 '?€€ and mobile = '18451922609'?€€' at line 1 ?
查看完整描述

1 回答

?
ziom

TA貢獻(xiàn)948條經(jīng)驗(yàn) 獲得超1109個(gè)贊

'小美'后面有一個(gè)中文空格

查看完整回答
1 反對(duì) 回復(fù) 2016-08-04
  • 1 回答
  • 0 關(guān)注
  • 2613 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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