NodeJS MSSQL WHERE IN Prepared SQL Statement
问题 I am use nodejs npm package sql I currently have an array of product skus like so.. var skus = ['product1', 'product2', 'product3']; My sql store in a file as follows... SELECT * FROM stock AS s WHERE s.sku IN (@skus) Then I also have my prepared statement code as follows.. var connection = new sql.Connection(config, function(err) { var ps = new sql.PreparedStatement(connection); //Add params if(params != undefined){ for(var key in params){ ps.input(key, sql.VarChar(200)); } } ps.prepare