我想将两个选择查询与UNION
.
如何SELECT
在第二个中使用第一个的结果SELECT
?
(SELECT carto_id_key FROM table1
WHERE tag_id = 16)
UNION
(SELECT * FROM table2
WHERE carto_id_key = <the carto_id result from above> )
我想将两个选择查询与UNION
.
如何SELECT
在第二个中使用第一个的结果SELECT
?
(SELECT carto_id_key FROM table1
WHERE tag_id = 16)
UNION
(SELECT * FROM table2
WHERE carto_id_key = <the carto_id result from above> )