I want to get out put from NodeRed mysql node.
Select Query is :
msg.topic = "SELECT * t.TableID FROM booking t where t.bookingdate='"+formattedDate+"' and t.TableID = 3";
Output i am trying to get:
if(msg.payload.TableID ==3){
var id = "15";
var message = "Front Desk";
msg.topic = "INSERT INTO tableMessage(TableID, MESSAGE) VALUES ('"+id+"' ,'"+message+"')";
return msg;
}
Question is msg.payload.TableID ==3
is it right? is it right way to read out put from Mysql node
Select query are tested working fine. but this condition not working for me.
any one help me how to retrieve data from mysql node.
Thanks