diff --git a/Useful-SQL-commands.md b/Useful-SQL-commands.md index a66237e..0be4e30 100644 --- a/Useful-SQL-commands.md +++ b/Useful-SQL-commands.md @@ -5,4 +5,7 @@ Get the maximum entered sub-title rank: * SELECT MAX(strank) FROM gwsubtitles WHERE titlenameid = ?; Select title ranks from an array: -* SELECT * FROM gwsubtitles WHERE titlenameid = 25 AND stnameid IN (4, 6, 9); (4 6 9 will be replaced by a ? mark) \ No newline at end of file +* SELECT * FROM gwsubtitles WHERE titlenameid = 25 AND stnameid IN (4, 6, 9); (4 6 9 will be replaced by a ? mark) + +Delete title ranks from an array: +* DELETE FROM gwsubtitles WHERE titlenameid = 54 AND stnameid IN (160,161,162); \ No newline at end of file