j***@gmail.com
2014-03-11 05:02:47 UTC
I got a problem with modifing view contents
a simple example:
create table t1(c1 int,c2 int);
create view v1 as select c1 from t1;
create view v2 as select * from v1;
create view v3 as select * from v2;
if I modify v1 as
create view v1 as select c2 from t1;
I have to drop view v1, then recreate the view v1.
But It will delete all the views(v2 & v3) refer to the view v1.
How can I avoid this ?
a simple example:
create table t1(c1 int,c2 int);
create view v1 as select c1 from t1;
create view v2 as select * from v1;
create view v3 as select * from v2;
if I modify v1 as
create view v1 as select c2 from t1;
I have to drop view v1, then recreate the view v1.
But It will delete all the views(v2 & v3) refer to the view v1.
How can I avoid this ?