This commit is contained in:
2021-02-15 11:18:16 -06:00
parent 7a2a00e029
commit d2718e198f
+3 -1
View File
@@ -13,7 +13,7 @@ const alumno = (numeroCuenta) => {
db.connect((err) => {
if (err) reject(err);
db.query(
`select * from servicio_social where cuenta = ${numeroCuenta}`,
`select * from servicio_social where cuenta = '${numeroCuenta}'`,
(err, data) => {
if (err) reject(err);
db.disconnect();
@@ -30,3 +30,5 @@ const exec = async () => {
console.log(a);
};
exec();