examples/node/results.js
function(results) {        
        for(var i = 0; i < results.rows.length; i++) {
            console.log("Result " + (i + 1) + ": ");
            var row = results.rows[i];
            for(var j = 0; j < results.fields.length; j++) {
                var field = results.fields[j];
                var value = row[j];
                
                console.log("  " + field + " = " + value);
            }
        }
    }
function(results) {        
        for(var i = 0; i < results.rows.length; i++) {
            console.log("Result " + (i + 1) + ": ");
            var row = results.rows[i];
            for(var j = 0; j < results.fields.length; j++) {
                var field = results.fields[j];
                var value = row[j];
                
                console.log("  " + field + " = " + value);
            }
        }
    }
function ( results ) { for ( var i = 0 ; i < results . rows . length ; i ++ ) { console . log ( "Result " + ( i + 1 ) + ": " ) ; var row = results . rows [ i ] ; for ( var j = 0 ; j < results . fields . length ; j ++ ) { var field = results . fields [ j ] ; var value = row [ j ] ; console . log ( "  " + field + " = " + value ) ; } } }
Print the result rows
Print the result rows