15.06.2012, 07:44
Quote:
Код:
UPDATE `Player` (`data1`, `data2`, `data3`) VALUES('%d', '%d', '%d') WHERE `name` = '%s' |
To update more than one value, you must follow this syntax.
Example
pawn Код:
UPDATE `Users` SET Password = '%s', Level = %d, AdminLevel = %d WHERE `Name` = '%s'
That query will update the Users table by setting password = x, level = x, adminlevel = x only WHERE the Name = x.
You can also add more checks by using the AND clause.
pawn Код:
UPDATE `Users` SET Password = '%s', Level = %d, AdminLevel = %d WHERE Name = '%s' AND Regged = 1