PostgreSQL/Constraints/NOT NULL

Материал из SQL эксперт
Версия от 13:14, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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>