insert
// insertUsers:'insert into users (username,password) values(?,?),values(?,?)';
//updateCounter:'update set cnt = '
//queryCount:'selct count(*) from users'
userArr = [{username:"123",password:"1234"},
{username:"789",password:"890"},
{username:"12345",password:"4567"}];
var strCondicition = '';
var userInfo = []
console.log(userArr.length)
for(var i = 0;i < userArr.length;i ++){
if(i == 0){
userInfo.push(userArr[i].username,userArr[i].password)
}else{
strCondicition +=',values(?,?)'
userInfo.push(userArr[i].username,userArr[i].password)
}
}
console.log(userInfo)
console.log(strCondicition)