Re: Triggers and Domains
От | ekekakos |
---|---|
Тема | Re: Triggers and Domains |
Дата | |
Msg-id | 25213142.post@talk.nabble.com обсуждение исходный текст |
Ответ на | Re: Triggers and Domains (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Triggers and Domains
|
Список | pgsql-novice |
Thanks but how, in SQL server you put the function USER() (if I remember well) and it works. Here it does not work. I must put in all of my table the 2 fields LASTUPDATEUSER and LASTUPDATEDATETIME and I am trying to find a quick way. I thought the inheritance but I do not think that it will work. I will be much appreciate if someone can help me on this. Thanks Elias Tom Lane-2 wrote: > > ekekakos <ekekakos@hol.gr> writes: >> I have a DOMAIN LastUpdateUser and I want to use it in all the tables of >> the >> database. I want also to create a trigger which will fulfill this domain >> with the user name. >> Is it possible to do it on Domain instead of the table? > > No. But wouldn't a DEFAULT expression attached to the domain serve just > as well? > > regards, tom lane > > -- > Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-novice > > -- View this message in context: http://www.nabble.com/Triggers-and-Domains-tp25209238p25213142.html Sent from the PostgreSQL - novice mailing list archive at Nabble.com.
В списке pgsql-novice по дате отправления: