select * from c
select * from d
1 --定义视图 2 create view dbo.vc 3 with schemabinding 4 as 5 select c1 * c2 * (2 + d1 - d2) as ccc 6 from dbo.c , dbo.d 7 where dbo.c.c1 = dbo.d.d1 8 go 9 --在视图上定义一个唯一聚集索引 10 create unique clustered index view_index 11 on dbo.vc(ccc)
select * from dbo.vc
原文:https://www.cnblogs.com/2020R/p/13179737.html