标签: javascript mysql
我想做一个看起来像这样的查询:
commands[0].fp6p(...)
我怎样才能实现这一目标?我尝试了以下方法:
"Select * FROM ... WHERE name in ($array)" which would be equal to "Select * FROM ... WHERE name in 'joe','william', ..."
但接下来是我的结果(由于单引号而出现反斜杠):
array = array.join("','")