题目内容

在tb_name表中创建一个名为name_view的视图,并设置视图的属性为name、pwduser,执行语句是什么?( )

A. CREATE VIEW name_view(name,pwd,user)AS SELECT name.pwd,user FROM tb_mame;
B. SHOW VIEW name_view(name,pwd,user) AS SELECT name,pwd,user FROM tb_mame:
C. DROP VIEW name_view(name,pwd,user) AS SELECT name,pwd,user FROM tb_mame:
D. SELECT * FROM name_view(name,pwd,user) AS SELECT name,pwd,user FROM tb_ name:

查看答案
更多问题

下面哪条语句创建的视图是不可以更新的?()

A. CREATE VIEW book view1(a_sort,a_book) AS SELECT sort,books,count(name)FROM tb_book;
B. CREATE VIEW book view1(a_sort,a_book) AS SELECT sort,books,FROM ib_book;
CREATE VIEW book viewl(a_sort,a_book) AS SELECT sort,books.WHERE FROM tb_ book;
D. 以上都不对

请解释视图与表的区别有哪些。

请简述使用视图的优点有哪些。

创建视图时应注意哪些问题。

答案查题题库