我想在三个没有匹配列的表之间进行查询。我使用过UNION
但它用 结果替换idDisplayNetwork
和。idDevice
idCountryin
SELECT idcountry,
name
FROM country
UNION
SELECT iddevice,
name
FROM device
UNION
SELECT name,
iddisplaynetwork
FROM displaynetwork
我想要这种输出
{ idCountry: '18ec1e07-9c89-4d2c-aefe-a7bd8966fab4',
Name: 'Russia' },
{ idCountry: '31ceda51-9ce8-4380-bd41-c95f660e2ad4',
Name: 'Turkey' },
{ idDevice: 'c0180c24-2df5-4082-b050-94dfaf1d5174',
Name: 'Desktop and Laptops' },
{ idDisplayNetwork: '771434a0-0e6d-4206-90f5-f6abf85690d1',
Name: 'search network' },
任何帮助将不胜感激。