skip to Main Content

CASTING integer to integer[] postgresql in UNION ALL

I am using postgresql and have a select statement on mulitple tables CREATE OR REPLACE VIEW group.all AS SELECT 'gmail'::text AS main_source, gmail.id, gmail.from, gmail.to, gmail.user_id FROM first_group.gmail UNION ALL SELECT 'yahoo'::text AS main_source, yahoo.id, yahoo.from, yahoo.to, yahoo.user_id FROM second_group.yahoo…

VIEW QUESTION
Back To Top
Search