ALTER safely
ALTER TABLE on a table that has rows must not break them. A new required column needs a default for the old rows.
task
trips has rows. Add a required column status with default 'new'; the rows must get 'new'.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
ALTER TABLE on a table that has rows must not break them. A new required column needs a default for the old rows.
trips has rows. Add a required column status with default 'new'; the rows must get 'new'.