我有一个查询
"select * from test";
我必须在测试后添加 UNION
"select * from test union"
它不是连续的。
如何将联合添加到查询中?
更新
select * from x where id = "2" union select * from y where id = "2" union select * from z where id = "2"
select * from x where id = "3" union select * from y where id = "3" union select * from z where id = "3"
请参阅 select 语句 id = 3 ,union 丢失。现在,我必须在查询中添加这个联合来执行和删除最后一个额外的联合并将查询传递给 mysql_query() 函数。