Guest User

Untitled

a guest
Oct 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. let columnsArray = ['col1', 'col2'];
  2. let tablesArray = ['table1', 'table2'];
  3.  
  4. }).then(result => {
  5. // some code
  6.  
  7. // HELP Required
  8. for(i=0; i<2; i++) {
  9. return pool.request()
  10. .query("SELECT " + COL[i] + " FROM " + TABLE[i]) // returns a promise
  11. }
  12. }).then(result = {
  13. console.log(result.recordsets)
  14. })
Add Comment
Please, Sign In to add comment