Constraint fires
A constraint is only useful when you see it fire. Read the error code, not just the text.
task
Insert a trip with negative km; the statement must fail with the check violation.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A constraint is only useful when you see it fire. Read the error code, not just the text.
Insert a trip with negative km; the statement must fail with the check violation.