'can someone help me find the correct syntax for this sql query? using node.js
im struggling to find the correct way to write this database request by email column i hope someone could point me in the right direction
const loginUser = async (request, response) => {let params = [request.body.email];let sql = SELECT * FROM vacations.users where email=${params}
let user = await connection.executeWithParameters(sql, params)
console.log(user);
return user;
}
i tried to include the parameters in several ways but i don't know how to correctly put them in the sql query
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
