| От | Philipp Ottlinger |
|---|---|
| Тема | Re: not null |
| Дата | |
| Msg-id | 3E327A54.8030800@computer-systeme.de обсуждение исходный текст |
| Ответ на | not null (ryanne cruz <ryanne.cruz@up.edu.ph>) |
| Список | pgsql-php |
ryanne cruz wrote: > > hi list. > > i have a column that has a "not null" as its modifier. is there a way that i > can remove that? or better yet to make it a "serial not null"? > It depends on your entitiy-relationship schema - usually it makes sense to define things as "not null" and it shouldn't be considered to be taken away just by chance !!! Usually you can alter the TABLE to remove such constraints ... SERIAL - if I'm not too mistaken - is automatically maintained by postgres as an implicit sequence whose values are generated by calling sequence.nextval autonomously everytime you "need" a value! Yours, Phil
В списке pgsql-php по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера