📌  相关文章
📜  node js检查用户是否存在于mysql中 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:29.733000             🧑  作者: Mango

代码示例1
connectDB.query("SELECT ACCOUNT_ID FROM registration WHERE ACCOUNT_ID = '"+ userAccnt +"'", function(err, result, field){
     if(result.length === 0){
        //new user logic
}else{  
    //existing user, redirect to another page 
 }
        }