| От | Doug McNaught |
|---|---|
| Тема | Re: on update set default |
| Дата | |
| Msg-id | m31yi475kt.fsf@belphigor.mcnaught.org обсуждение исходный текст |
| Ответ на | on update set default ("Ben-Nes Michael" <miki@canaan.co.il>) |
| Ответы |
Re: on update set default
|
| Список | pgsql-general |
"Ben-Nes Michael" <miki@canaan.co.il> writes: > Hi All > > Im want that on each insert, update to a table the column: > changed_on TIMESTAMP DEFAULT now() > will be set to now(); > > any one can hint me ? > I tried few rulles and triggers for hours with no luck :( An AFTER trigger to do this should be pretty easy. Why don't you post what you've tried and we'll see where you went wrong? -Doug -- Let us cross over the river, and rest under the shade of the trees. --T. J. Jackson, 1863
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера