这是我的 UNION ALL 查询,但它不起作用,我不知道为什么,它似乎是正确的
SELECT
ID AS IDzivotinja, zivotinja
FROM zivotinje WHERE IDveterinar=$ID
UNION ALL
SELECT
ID AS IDsimptom, simptom
FROM simptomi WHERE IDveterinar=$ID
UNION ALL
SELECT
ID AS IDterminza, terminza
FROM termniniza WHERE IDveterinar=$ID