| От | joerg.troester@gmx.net |
|---|---|
| Тема | Inheritance and origin of rows |
| Дата | |
| Msg-id | 7604.913041402@www.gmx.net обсуждение исходный текст |
| Список | pgsql-sql |
In my database I created a table "partners" and two tables "individuals" and "companies" which are inherited from "partners". Table "partners" has columns "name", "address", "phone",... Now I want to query any partner being an individual or company by a statement like "select name,address,phone from partners*". For further proceeding the information is needed which table (individuals or companies) any row is taken from. My question is: * is there any possibility to retrieve this information from a system table (e.g. the name of the table where a row/rowid resides in) * or do I need a workaround like adding a column "tablename" into table "partners"? Thanks a lot for answering. --- Sent through Global Message Exchange - http://www.gmx.net
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера