MySQL: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>LiamLime No edit summary |
imported>LiamLime No edit summary |
||
Line 81: | Line 81: | ||
SELECT *<br> | SELECT *<br> | ||
FROM ss13_player<br> | FROM ss13_player<br> | ||
WHERE ckey LIKE "% | WHERE ckey LIKE "%abc%" | ||
This will return a list of players, whose ckey contains the letters 'err'. The % signs before and after | This will return a list of players, whose ckey contains the letters 'err'. The % signs before and after abc mean that anything can be located before or after abc. LIKE also ignores case, so all of the following will work: "'''abc'''n", "aocwegijaw'''abc'''maobr", "'''abc'''", "'''ABC'''", "'''AbC'''", "E'''Abc'''", "aWAEGaewgaWEG'''aBc'''aegawe". Your example might require you to replace the string abc with a different character combination, depending on which ckeys you have logged. | ||
==== Numbers ==== | ==== Numbers ==== |