我有一个这样的 MySQL 脚本:
SELECT ... FROM ... WHERE ...
UNION ALL
SELECT ... FROM ... WHERE ...
现在如何从联合结果中再次选择?
这不起作用:
SELECT * FROM (
SELECT ... FROM ... WHERE ...
UNION ALL
SELECT ... FROM ... WHERE ...
);
我有一个这样的 MySQL 脚本:
SELECT ... FROM ... WHERE ...
UNION ALL
SELECT ... FROM ... WHERE ...
现在如何从联合结果中再次选择?
这不起作用:
SELECT * FROM (
SELECT ... FROM ... WHERE ...
UNION ALL
SELECT ... FROM ... WHERE ...
);