node mysql 中 connection.query的问题
本文介绍了node mysql 中 connection.query的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
node mysql 中 connection.query('select * from table where tel=?',[tel],function(){})
,如果tel有多个值怎么办?
解决方案
connection.query('select * from table where age=? and tel in (?);',[20, [1, 2, 3]],function(){})
这篇关于node mysql 中 connection.query的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文