Howto SQL-Query with quotes

Thanks folks,

Colin is right:

If you look at it exactly it should be:

msg.topic = "INSERT INTO `myTable` (`user_id`, `entry_time`, `comment`) VALUES ('ID','TIME','COMMENT')";

And here is the difference in the quotes. Left from VALUES it is ` and on the right site it's '

I think the solution of bakman2 is perfect. Until today I have not seen this but it works easy and great.
In my case I get different information quality. So in most messages are not values for all fields are send. In this solution this is also very easy. I create the SQL-string by the template and after that I replace all '' with NULL by a change-node. So 2 nodes with a very low codes are generating easy the perfect string. The next advantage for long statements is the ability to copy a well formatted string from my database (tools) and edit it easy.

Niels