Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Native SQL WHERE fieldname IN(:hostvar)

former_member186338
Active Contributor
0 Likes
687

Is it possible to pass to Native SQL the host variable containing list of values to be used in:

DELETE FROM tablename WHERE field IN(:hostvariable)

resulting in:

DELETE FROM tablename WHERE field IN('2015.02','2015.03','2015.04')

My external server is MS SQL server

I know about other ways to achieve the goal...

- Loop DELETE

- Run stored procedure

- Use dynamic ADBC

1 ACCEPTED SOLUTION
Read only

former_member186338
Active Contributor
0 Likes
471

Looks like impossible! Closing the question.

1 REPLY 1
Read only

former_member186338
Active Contributor
0 Likes
472

Looks like impossible! Closing the question.