SQL Server: View


Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên
--View:

select*from Student;

create view vw_ViewStudent with schemabinding as

select rn,age,status from dbo.Student

where Age>=20;

alter view vw_ViewStudent with encryption,schemabinding as

select top(99.9999) percent rn,age,status from dbo.Student

where Age>=20

order by age

-- group by rn,Age,status

with check option;

exec sp_helptext 'vw_ViewStudent';

update vw_ViewStudent set Age=18 where RN=1;

alter table Student alter column age float;

create unique clustered index uci on vw_ViewStudent(rn);

drop index vw_ViewStudent.uci;
» Tiếp: Trigger
« Trước: Distinct, Clustered và Non-Clustered Index
Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên
Copied !!!