I want to store the result of count (ex:- 5) in MySQL query to a variable, but it is storing the whole JSO string as [{"COUNT(*)":8}], so How to store value 8 in my variable row?
My code in NodeJS:
connection.query('SELECT COUNT(*) FROM issues',
function(err, rows){
var row=JSON.stringify(rows);
console.log(row);
});
SELECT COUNT(*) as cnt ...