When you do an
ALTER TABLE <name>
You can use ALTER COLUMN so you don’t have to type out the entire table definition again.
Say I have a view which ends with WHERE entity = 'MyEntity'
rather than having to basically write the entire view definition out, can I just do something like…
ALTER VIEW schools ALTER WHERE entity = 'newMyEntity'
Thanks,
You really can’t. The problem is that the system would need to somehow be able to figure out “correct” sql for your new views based on changes you made to original table (column type etc). While that could work for trivial cases (adding new columns, using simple views, etc), that would be a nearly impossible thing to do in generic case. Also such change would imply the need to review indexes, constrains on the table etc.