PostgreSQL/Constraints/NOT NULL — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 13:14, 26 мая 2010
Specify not null constaint for column
<source lang="sql">
postgres=# postgres=# CREATE TABLE products ( postgres(# product_no integer NOT NULL, postgres(# name text NOT NULL, postgres(# price numeric postgres(# ); CREATE TABLE postgres=# postgres=# postgres=# drop table products; DROP TABLE postgres=# postgres=#
</source>