If I have a MySQL query that returns a value that will be used again in a WHERE clause, will this work with Node.js' asynchronous execution flow?
Generally this might be the case:
SELECT
customerId FROM Customers
WHERE customerName=nikolas
Then the result would be stored like so:
var customerId = customerId
And reused in another query:
SELECT
orderId FROM Orders
WHERE customerId=customerId
Will this fetch me the orderId of the customer Nikolas that was returned in the first query?
Will written queries run sequentially?