Answer the question
In order to leave comments, you need to log in
In nodejs, when working with a database, does all logic need to be stored within a callback?
For example, we get from mysql which field
connection.connect();
connection.query('SELECT * from `etc`', function(err, rows, fields) {
if (err) throw err;
console.log('Телефон: ', rows[0].phone);
});
connection.end();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question