node mysql 中 connection.query的问题

node mysql 中 connection.query('select * from table where tel=?',[tel],function(){}),如果tel有多个值怎么办?

阅读 4.4k
1 个回答
connection.query('select * from table where age=? and tel in (?);',[20, [1, 2, 3]],function(){})
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进