文章詳情頁
node mysql 中 connection.query的問題
瀏覽:108日期:2022-06-18 18:01:52
問題描述
node mysql 中 connection.query(’select * from table where tel=?’,[tel],function(){}),如果tel有多個(gè)值怎么辦?
問題解答
回答1:connection.query(’select * from table where age=? and tel in (?);’,[20, [1, 2, 3]],function(){})
相關(guān)文章:
1. python - Django 表單問題?2. mysql 字段索引的問題3. 求救一下,用新版的phpstudy,數(shù)據(jù)庫過段時(shí)間會(huì)消失是什么情況?4. login.html登錄界面為什么和老師講課的屆而不一樣?5. Python爬取網(wǎng)頁requests亂碼6. html - 微信端video標(biāo)簽播放mp4視頻,安卓端提示視頻解析錯(cuò)誤7. windows7 ping不通虛擬機(jī)VMware上的linux(ubuntu)的ip8. 人工智能 - python 機(jī)器學(xué)習(xí) 醫(yī)療數(shù)據(jù) 怎么學(xué)9. html5 - 百度echart官網(wǎng)下載的地圖json數(shù)據(jù)亂碼10. python - scrapy中返回函數(shù)的返回值
排行榜

熱門標(biāo)簽