您的位置:首页技术文章
文章详情页

node mysql 中 connection.query的问题

【字号: 日期:2022-06-18 18:01:52浏览:46作者:猪猪

问题描述

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(){})

相关文章: