| От | Bruno Wolff III |
|---|---|
| Тема | Re: Sequences |
| Дата | |
| Msg-id | 20020211155137.GA4605@wolff.to обсуждение исходный текст |
| Ответ на | Re: Sequences ("Hunter, Ray" <rhunter@enterasys.com>) |
| Список | pgsql-sql |
On Mon, Feb 11, 2002 at 10:12:33AM -0500, "Hunter, Ray" <rhunter@enterasys.com> wrote: > The only problem with this solution is that I have already incremented the > sequence and need to use the current value? Is there a way to assign the > value to a variable and then use it in an insert statement? You should be doing this in one transaction in which case currval should work. If you aren't doing it in one transaction, then your application will need to remember the current value.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера