More so an FYI than anything since I couldnt figure out why until I retype it as a question on this forum.
Code: Select all
let>holder='abc','def','ghi'
let>sql=select * from table1 where field1 like 'Test%' and field2 in (%holder%)
mdl>sql
The above statement should show:
select * from table1 where field1 like 'Test%' and field2 in (%holder%)
this is sent to dbquery and causes an error in the sql statement
Code: Select all
let>holder='abc','def','ghi'
let>sql=select * from table1 where field1 like 'Test%' and
concat>sql, field2 in (%holder%)
mdl>sql
select * from table1 where field1 like 'Test%' and field2 in ('abc','def','ghi').
The above sql string holds what you are actually trying to do:
Just thought i post this since i had to scratch my head for about an hour trying to figure out why it would not run in MS when it ran find under sql server