Is that coming from a function node? If so then it is difficult to diagnose the problem without seeing what you have put in the node. However, using my telepathic I can see that you have tried to use payload when you probably meant msg.payload.
I don't see the special character in the strings you have posted. Perhaps a screenshot would be better if the forum won't display it.
But those don't appear in the strings. Are you passing it the whole array or something. What exact query, for the example data you posted, are you trying to get?
Do you mean you just want to concatenate the second element of the array with the third? If so then in a function node, assuming the result is to be in msg.payload, I don't know if that is right for the node you are using, then
Do you mean that in a debug node you see that it says it is a string and shows the text "Select ..."? If so then the quotes are not in the string, they are just there to mark the start and end of the string.
If that isn't what you mean then show us what you are getting in a debug node, screenshot if possible please.
Hi Colin, my last two replies are held bij the system. The error returned by mysql is:
ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', )' at line 2
That says it doesn't like ,) in the query, so presumably it doesn't like VALUES (CURRENT_TIMESTAMP, , ). I don't use MSSQL but I guess you must provide values for all three columns.
I don't use timestamp. Here is the cmd:
"INSERT INTO TABLE PISS (_ID, _DIGID) VALUES (11111,554544454554)"
ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', )' at line 2
I don't believe that error is coming from that query. Configure a debug node on the output of the sql node to Show Complete Message and also one on the input. Give them names so they are identifiable in the debug output. Run it and screenshot the result please. If you are using node-red-contrib-mssql-plus it should have the query in msg.query on the output.