domain
A domain is a base type plus constraints you name once and reuse in many tables.
task
Create a domain zip5 (text, exactly 5 digits), a table using it, and insert '1234'; it must be rejected.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A domain is a base type plus constraints you name once and reuse in many tables.
Create a domain zip5 (text, exactly 5 digits), a table using it, and insert '1234'; it must be rejected.