From 18f0b6fb5b1de44816e4e6126926d0ce9dbe2232 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 7 Aug 2018 15:32:53 -1000 Subject: [PATCH] Update page 'Useful SQL commands' --- Useful-SQL-commands.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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