I have the following query:
SET @VAR = 'N';
SELECT 'TESTE1','OI',@VAR := 'S' AS T
UNION ALL
SELECT 'TESTE2','OI',@VAR AS T
UNION ALL
SELECT * FROM ( SELECT 'TESTE3','OI',@VAR AS T ) AS TAB
UNION ALL
SELECT 'TESTE4','OI',@VAR AS T
Can a...
asked by
01.11.2017 / 20:50