This content has been marked as final.
Show 2 replies
-
1. Re: If statement inside SQL Statement Info Editor
WASIL Jan 1, 2014 5:23 AM (in response to Ali Ahmed)To the best of my knowledge, the IF statement can be used in Stored Procedures Language and then called by JDBC but not directly as above. Here is one workaround but vendor specific : http://www.itjungle.com/fhg/fhg071608-story02.html
Thanks,
Wasil
-
2. Re: If statement inside SQL Statement Info Editor
Mark Lindberg Jan 2, 2014 11:26 AM (in response to WASIL)If the conditional SQL is critical to your logic, vs. splitting the SQL into 2 activities/calls,
Then you may want to look at using Java inside an ExecuteScript activity.
You usually have more flexibility using a prepareStatement, but you need to be sure to trap and handle and errors.
Mark



