文章详情页
node mysql 中 connection.query的问题
问题描述
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(){})
相关文章:
1. ueditor上传服务器提示后端配置项没有正常加载,求助!!!!!2. Thinkphp 下载地址找不到了?3. mybatis - Java关于Mysql的随机id生成4. mysql - 数据库建字段,默认值空和empty string有什么区别 1105. javascript - 百度地图自己的产品可以精确定位,为什么我调用他的公开API却必须经过用户同意才能获取精确定位,而且还慢?6. 怎么学好php7. 在MySQL数据库中查询表里的记录条数的代码怎么写?8. 老师们php,插入数据库mysql,都是空的,要怎么解决9. 如何更新/删除指定的两条或多条数据10. mysql - sql如何进行多个字段去重?
排行榜