码迷,mamicode.com
首页 > 数据库 > 详细

nodejs,mysql语句in的写法

时间:2019-09-19 19:24:57      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:mysq   await   type   res   mysql   exports   export   style   exp   

exports.findTest = async()=>{
const ids = [‘b3bc6e3dbb2a420aa8d569d70283e4ed‘, ‘6fa0671fd75d418398b5ab4a35bfe21d‘]
const sql = `select id,pay_type from pet_register_info where id in (?)`;
const result = await conn.query(sql, [ids]);
return result[0];
}

nodejs,mysql语句in的写法

标签:mysq   await   type   res   mysql   exports   export   style   exp   

原文地址:https://www.cnblogs.com/qiyc/p/11551631.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!