How to access RowDataPacket mysql-node.js
Try this:
results[0].@update_id
use console.log(JSON.stringify(result));
then if you want to get access data on variable
var data = JSON.stringify(result[0].@update_id)
console.log(data);
you can't use index on var E.G
console.log(data[0].@update_id)
it is wrong
just conver the result to array, then you can easily access the data, i get solved by doing this
let res = JSON.parse(JSON.stringify(result));