本文共 544 字,大约阅读时间需要 1 分钟。
ylbtech-SQL Server: SQL Server-SQL 视图(View)基础 |
SQL 视图(View)基础。
1,ylb:视图(View)基础 |
-- =============================================-- ylb:“视图的基本创建于操作”-- 17:23 2011/12/13-- =============================================use pubsgo--1,创建一个视图create view VTitlesasselect * from titlesgo--2,查看“VTitles”视图,和查看表一样select * from VTitlesgo--3,移除"“VTitles”视图"--drop view VTitlesgo--4,把“VTitles”视图"的名字更改为“VVTitles”sp_rename VTitles,VVTitlesgo--更改成功!select * from VVTitlesgoselect * from usersgosp_rename users,yuanbo