You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the node-oracle module and have connected to an oracle database successfully. But, I have a problem when I execute a select query. My code is below (the file name is tests-connection.js):
connection.execute("SELECT * FROM DM_LINH_VUC", [], function(err, results){
if (err) { console.log("Error executing query:", err); return; }
console.log(results); //This statement's not working
connection.close();
});
I have tried to update a record and it works, but when I execute a select query I do not see any output in the console log statement. The terminal is empty until the code that is executing is finished.
How can one fix this problem?
Thanks
The text was updated successfully, but these errors were encountered:
thaihoc
changed the title
Can not execute the console log statement when execute select query
The console log statement not working when execute select query
Jan 23, 2015
thaihoc
changed the title
The console log statement not working when execute select query
The console log statement not working when select query is executed
Jan 23, 2015
I have installed the node-oracle module and have connected to an oracle database successfully. But, I have a problem when I execute a select query. My code is below (the file name is tests-connection.js):
The output in Node.js command prompt (nothing):
I have tried to update a record and it works, but when I execute a select query I do not see any output in the console log statement. The terminal is empty until the code that is executing is finished.
How can one fix this problem?
Thanks
The text was updated successfully, but these errors were encountered: