Re: Snippets?

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Snippets?
Дата
Msg-id cb13d04b-2143-36f7-3f6e-f0d0979092d7@gmail.com
обсуждение исходный текст
Ответ на Snippets?  (Ken Lacrosse <klacrosse@pkwillis.com>)
Список pgsql-general
On 5/24/19 1:15 PM, Ken Lacrosse wrote:

Is there any way in postgresql to have a "snippet" of SQL code which you could apply to all tables.  Something you could add which would ensure that every table always has a Created, Changed and Deleted column for example.  Sort of like a C include I suppose.  Of course if I’m building a DB schema by hand I could just copy and paste those columns but it still seems a bit too, darn humans!, error prone.


Inheritance might be what you want.

--
Angular momentum makes the world go 'round.

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

Предыдущее
От: Ken Lacrosse
Дата:
Сообщение: Snippets?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Snippets?