16 lines
204 B
MySQL
16 lines
204 B
MySQL
|
-- UNION
|
||
|
SELECT 13
|
||
|
UNION
|
||
|
SELECT 42;
|
||
|
|
||
|
SELECT 13
|
||
|
UNION
|
||
|
SELECT * FROM (VALUES 42, 13);
|
||
|
-- INTERSECT
|
||
|
SELECT * FROM (VALUES 13, 42)
|
||
|
INTERSECT
|
||
|
SELECT 13;
|
||
|
--EXCEPT
|
||
|
SELECT * FROM (VALUES 13, 42)
|
||
|
EXCEPT
|
||
|
SELECT 13;
|