Application Development 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: 

Native SQL WHERE fieldname IN(:hostvar)

former_member186338
Active Contributor
0 Kudos

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

former_member186338
Active Contributor
0 Kudos

Looks like impossible! Closing the question.

1 REPLY 1

former_member186338
Active Contributor
0 Kudos

Looks like impossible! Closing the question.