PostgreSQL/Constraints/NOT NULL — различия между версиями

Материал из SQL эксперт
Перейти к: навигация, поиск
м (1 версия)
 
м (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>