Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to check if values from a list are NOT in a table

946832Dec 6 2013 — edited Dec 6 2013

Hello guys

lets say I have a select with a long given list like this:

select id from article where id in

(1243216,

12613,

3525,

236262,

2363,

....)

How can I get all the values out of that given list, that can NOT be found in my article table - without importing those list values in a new table?

select id from article where id NOT in

[LIST]

obviously won't work,  because then I get the whole big rest of the article table.

Thank you very much


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2014
Added on Dec 6 2013
2 comments
655 views