SQL server 视图

 1 --创建视图
 2 go
 3 create view eq
 4 as
 5 select a.* from [dbo].[Equipment] a
 6 join [dbo].[CameraConfiguration] b
 7 on a.DeviceNo=b.DeviceNo
 8 
 9 --删除视图
10 
11 drop view eq
12 
13 --查询视图的内容
14 select text
15 from syscomments
16 where id=object_Id('视图名')
17 --查询视图的内容
18 sp_helptext 视图名
原文地址:https://www.cnblogs.com/s666/p/13776389.html