Null column : Constraints Basics « Constraints « PostgreSQL






Null column


postgres=# CREATE TABLE products (
postgres(#    product_no integer NULL,
postgres(#    name text NULL,
postgres(#    price numeric NULL
postgres(# );
CREATE TABLE
postgres=# drop table products;
DROP TABLE
postgres=#
postgres=#
           
       








Related examples in the same category

1.Specifying two constaint for a single table
2.Primary key with check option
3.Specifying range check in table creation