| От | Sean Davis |
|---|---|
| Тема | Using nextval(seq) in more than one column |
| Дата | |
| Msg-id | 470CC319.7020602@mail.nih.gov обсуждение исходный текст |
| Ответы |
Re: Using nextval(seq) in more than one column
Re: Using nextval(seq) in more than one column Re: Using nextval(seq) in more than one column |
| Список | pgsql-novice |
I am trying to design some tables that have keys that look like: ASDF-#### where #### should be derived from a sequence. However, I would like the primary key to be an integer for speed of indexing, etc. I don't see a way using standard DDL followed by inserts to have the #### be the same number as the integer primary key. Is that the case? In other words, I would like the rows to look like: 1 ASDF-1 .... 2 ASDF-2 .... Thanks, Sean
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера