A checkconstraint makes sure that the values of a column adhere to some basic rules which are formulated with SQL expressions.
Create a table with constraints on columns:
create table tq84_checked_columns (
num integer check (num between 0 and 1e5) not null,
txt varchar2(42) check (length(txt) > 5 ) ,
dat date check (dat = trunc(dat) )
);
Insert two records:
insert into tq84_checked_columns values (42, null, null);
insert into tq84_checked_columns values (99, 'hello world', date '2021-05-13');