I can't get the result I want from the following query. Can I get a little help, please? thank you.
$sql = "SELECT id,
CASE
when Rcon = '' then '0',
when Rcon = 'x' then '1',
when Rcon = '2x' then '2',
when Rcon = 'x3' then '2',
when Rcon = 'x,x3' then '3',
when Rcon = 'x4' then '3'
ELSE Rcon END AS Rcon
FROM mytable";