我有一个可变长度的数组,我想将数组传递给mysql get query。
var ids = [1,3,7,8]
我的查询是
return Connection.query("select student from registrations where id in (?)", [ids], callback);
有可能吗?
答案 0 :(得分:-1)
是的,查询将起作用。
get_source_pass_oppartner_ridePoints:
'SELECT * FROM ride_root WHERE rideId in (?)',
return database.query( sql.get_source_pass_oppartner_ridePoints, [rideIds] )