view

 I. View là gì?
* đây là một bảng ảo không thực sự tồn tại trong SQL . NÓ được tạo ra  bởi truy vấn kết hợp 1 hay nhiều bảng.

*nó sẽ đảm bảo tính bảo mật cho dữ liệu

II. Các lệnh

*Tạo VIEW trong SQL
+ CÚ PHÁP: 

                       CREATE VIEW ten_view AS
                       SELECT ten_cot,...
                       FROM ten_bang
                       WHERE [điều_kiện];

*Cập nhật VIEW 

+cú pháp:

alter view ten_view AS
select bieu_thuc
From ten_bang
where dieu_kien;

*Xóa VIEW

+cú pháp: drop view ten_view







                  

Nhận xét

Bài đăng phổ biến từ blog này

Statistics in the world. Warnings from experts about the pandemic

vaccine ebonavirus

Some characteristics of the virus in humans.The formation of the virus.