I'm a relative node newbie (old school programmer)
I have working code to grab a result set and parse through rows. I'm using felx's node-mysql driver. It's not hard to specifically print out columns.
connection.query('SELECT * FROM Company', function(err, rows, fields) {
if (err) throw err;
for (var i = 0; i < rows.length; i++) {
result = "";
result = result + ('| ' + rows[i].name + ' | ' + rows[i].address_zip);
theEmail = theEmail + result + "<BR>";
}
What I really want to do is loop through fields without having to name them ... my gut tells me it would be rows[i].[j]
... or something like that.
Is this possible?