2
我正在做一個選擇使用聯盟所有的搜索頁面,所以我需要知道從哪個表結果來自於,爲我做一個鏈接到正確的頁面。 有可能嗎?選擇使用聯盟所有疑問
例:
(SELECT id, title AS tit FROM video WHERE `title` LIKE '%test%')
UNION ALL
(SELECT id, title AS tit FROM testimonials WHERE `title` LIKE '%test%' AND _type = 'news')
UNION ALL
(SELECT id, title AS tit FROM image_gallery WHERE `title` LIKE '%test%' AND id_gallery = '1')
乾杯芒果
謝謝里克,我dindnt知道這是可能的! – Mango