Monday, 20 January 2020

Db request in for loop

Hello team,Here is my code and my second query doesn't execute , what is that i am missing with,for(loopvar;condition;loopvar++) {for(loopvar2;condition;loopvar2++) { Console.log("debug"); Conn.query(query, function(err,data){ Console.log(data); }); }}I am using this code to caliculate the data, conn is async call and it should give data after some time but i am not getting any data and unable to see that execution is done.Suggest me where i am breaking or how to make them get data right here even after some time,Thanks,

Submitted January 20, 2020 at 01:34PM by shiva-shankar

No comments:

Post a Comment