| От | Richard Huxton |
|---|---|
| Тема | Re: trigger |
| Дата | |
| Msg-id | 437DD8B0.6030509@archonet.com обсуждение исходный текст |
| Ответ на | trigger ("Aftab Alam" <aalam@tatashare.com>) |
| Ответы |
Re: trigger
|
| Список | pgsql-general |
Aftab Alam wrote: > Hello, > > I want to create a trigger in PostgresSQL > > In trigger, Before inserting the record, if data is already in the table, > the trigger fire the mesaage that data is already there, and after that > trigger ckeck for next insert statement. Aftab - can you explain in some more detail. Raising an error on an insert will happen automatically if you violate a unique constraing. What is this "next insert statment" you're talking about? -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера