Изменение значений по умолчанию
Листинг 4.9. Изменение значений по умолчанию
Doktown=# ALTER TABLE books
3oktOwn-# ALTER COLUMN id
x>
ktown-# SET DEFAULT nextvalС books.ids'):
JER
}oktown=# \d books
TABLE "books" Attribute | Type | Modifier
id integer not null default nextval('books.ids'::text)
1tle | text not null
juthorjd | integer ;ubject_id | integer j idex: books_id_pkey
)oktown=# ALTER TABLE books )oktown-# ALTER id
)oktown-# DROP DEFAULT;
JER
joktown=# \d books
TABLE "books" Attribute | Type | Modifier
id | integer | not null
;itle | text not null
iuthor_id j integer ;ubject_id j integer idex: books_id_pkey