Hey all,
I want to do the query below into a function:
insert into table values (msg.payload.1, msg.payload.2);
this function has two input (2 different msg.payload) so the code that I am trying to write is:
var m={
topic: "insert into info values ('"+msg.payload+"','"+msg.payload+"');"
};
return m;
it is adding two rows in the info table. but want to add only one row with two different values.
any idea?
Thanks in advance
it may be possible to use the new join node in 0.14.0 ;-)If the scenario is as Mark guessed..
INSERT ON DUPLICATE KEY UPDATE