26.12.2016, 20:27
Quote:
Oh, thank you. I will divide them. But let's say a faction has 15 ranks and I want to set them to 10, this means I need to delete 5 rows. What would be the best way to do it? Doing
Код:
DELETE FROM factionranks WHERE ID = 0 AND Rank = 11; DELETE FROM factionranks WHERE ID = 0 AND Rank = 12; DELETE FROM factionranks WHERE ID = 0 AND Rank = 13; DELETE FROM factionranks WHERE ID = 0 AND Rank = 14; DELETE FROM factionranks WHERE ID = 0 AND Rank = 15; |
pawn Код:
DELETE FROM factionranks WHERE ID = 0 AND Rank >= 11;
pawn Код:
DELETE FROM factionranks WHERE ID = 0 AND (Rank >= 11 AND Rank <= 15);