Re: UNION help

Поиск
Список
Период
Сортировка
От Dann Corbit
Тема Re: UNION help
Дата
Msg-id D425483C2C5C9F49B5B7A41F894415470100068F@postal.corporate.connx.com
обсуждение исходный текст
Ответ на UNION help  ("Robert James" <srobertjames@gmail.com>)
Список pgsql-general

SELECT ‘1st Query’ as whichone, col1, col2, col3 from table1

UNION

SELECT ‘2ND Query’ as whichone, col1, col2, col3 from table2

 


From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Robert James
Sent: Thursday, May 17, 2007 12:11 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] UNION help

 

Is there anyway to tell if the records in a union came from the 1st query or the second?
Can I modify the individual queries to let me know this?

В списке pgsql-general по дате отправления:

Предыдущее
От: "Jan Bilek"
Дата:
Сообщение: Re: JDBC - Prepared statements and PostgreSql Time/Date operations
Следующее
От: Shane
Дата:
Сообщение: Database corruption