文章詳情頁
node mysql 中 connection.query的問題
瀏覽:197日期:2022-06-18 18:01:52
問題描述
node mysql 中 connection.query(’select * from table where tel=?’,[tel],function(){}),如果tel有多個值怎么辦?
問題解答
回答1:connection.query(’select * from table where age=? and tel in (?);’,[20, [1, 2, 3]],function(){})
相關(guān)文章:
1. javascript - immutable配合react提升性能?2. javascript - sublime快鍵鍵問題3. javascript - nodejs關(guān)于進(jìn)程間發(fā)送句柄的一點疑問4. javascript - 移動端上不能實現(xiàn)拖拽布局嗎?5. 實現(xiàn)bing搜索工具urlAPI提交6. Apache 已經(jīng)把網(wǎng)站根目錄的改為allow from all了,但是服務(wù)器還是不能訪問?7. css - 寫頁面遇到個布局問題,求大佬們幫解答,在線等,急!~8. phpstudy8.1支持win11系統(tǒng)嗎?9. 配置Apache時,添加對PHP的支持時語法錯誤10. vue.js - Vue 如何像Angular.js watch 一樣監(jiān)聽數(shù)據(jù)變化
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備