PostgreSQL/Constraints/NOT NULL

Материал из SQL эксперт
Перейти к: навигация, поиск

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>