I want to delete certain records from mysql based on a condition. The value for condition is received from previous node. To achieve this I am using MySQL node, with operation => Execute Query. My query looks like this delete from analytics_dashboardwhereanalytics_dashboard.event_id like "% {{ $json.calendar_event_id }} %"
What is the error message (if any)?
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 ‘calendar_event_id"]}}%"’ at line 1
Thank you Jon. While the node was able to assign the value to variable from previous nodes. But while executing, I see following error 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 '{ '"%' + $json.calendar_event_id + '%"' }}' at line 1