Macro using dates for SQL
Best Answer
-
UPDATE: I've resolved this by using 'concat' to add single quotes before and after the macro value in a 'Generate Macro' operator.1
Answers
-
UPDATE: I've resolved this by using 'concat' to add single quotes before and after the macro value in a 'Generate Macro' operator.1
-
Hi,
that's a way to do it.
You can also add the single quotes inside the SQL string if you are not using the prepare functionality.
To make sure that you're not adding SQL injection vulnerabilities, you should use the "prepare statement" setting and enter your variable parameters in the form. Then RapidMiner will care for the correct quoting.
Regards,
Balázs0