How can I delete multiple values in SQL?
I know how to delete a rowset using statements like this:
DELETE FROM my_table WHERE id=23 AND year=2012 AND value=16
DELETE FROM my_table WHERE id=17 AND year=2012 AND value=16
DELETE FROM my_table WHERE id=64 AND year=2012 AND value=16
But I would like to combine the above three statements into one DELETE where id is 23, 17 or 64.
What is the syntax for this in Oracle SQL?
+3
source to share
4 answers