I need to perform a select query in the following manner:
select * from my_table where id NOT IN (comma_delimited_string);
What is the correct way to achieve that?
Considering the fact that I am in control of the client code which sends the string, is there a better approach? (the string will hold approximately 30 id's so I am trying to avoid sending 30 parameters, one for each id).
Thank you all
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…