create table t(id int identity(1,1))insert t default values
insert t default valuesgo
create view vw as
select * from t
goselect * from vw
/*
id
-----------
1
2
*/go
alter table t add val varchar(8)go
insert t select 'aa'--确实是重新执行了:多了一行记录
select * from vw
/*
id
-----------
1
2
3(3 行受影响)
*/go
alter view vw as select * from t
goselect * from vw
id          val
----------- --------
1           NULL
2           NULL
3           aa(3 行受影响)drop view vw
drop table t