举一反三
- 创建视图stu的语句为:CREATE VIEW ss AS【1】* FROM s_view WHERE score>=60
- 下面关于修改视图的SQL语句,那个是正确的( )。 A: alter view VIEW01 as select * from users order by age desc B: alter view VIEW02 as select name,avg(score) as avgScore from studentScore C: alter view VIEW03 as select top 10 id,name,password from admin order by id D: alter view VIEW04 as select * from stuent,class where student.classid=class.classid order by class.classid
- 修改视图vsex以查询stinfo表中女学生信息的正确语句是( )。 A: ALTER VIEW vsex AS SELECT * FROM stinfo WHERE 姓名 ='女' B: MODIFY TABLE vsex AS SELECT * FROM stinfo WHERE 性别= '女' C: ALTER VIEW vsex AS SELECT * FROM stinfo WHERE 性别 ='女' D: ALTER TABLE vsex AS SELECT * FROM stinfo WHERE 性别= '女'
- 下列哪条语句可以创建视图( )。 A: create view v_student as select * from student; B: alter view v_student as select * from student; C: drop view v_student as select * from student; D: sp_help view v_student as select * from student;
- 使用SQL语句查询视图v_student的所有数据,下列语句正确的是_______。 A: create view v_studentas....... B: alter view v_studentas....... C: select * from v_student D: drop view v_student
内容
- 0
以下是修改视图的语句是 A: create or replace view st1 as select* from student; B: alter view st1 as select name from student join class on student.cid=class.id; C: alter table st1 modify class int(3); D: create or replace table st1 as select* from student;
- 1
MySQL中可通过CREATE ( ) VIEW语句和ALTER VIEW语句来修改视图。
- 2
以下创建视图的语句中,正确的是 A: CREATE st_view AS SELECT sid,sname,ssex FROM stu B: CREATE VIEW st_view SELECT sid,sname,ssex FROM stu C: CREATE VIEW st_view AS sid,sname,ssex FROM stu D: CREATE VIEW st_view AS SELECT sid,sname,ssex FROM stu
- 3
使用ALTER VIEW语句可以对已有的视图进行修改。(
- 4
下列的查询语句哪一项是错误的(选一项) A: Select * from stumarks where score>=60 B: Select * from (select * from stumarks where score>=60) C: Select * from (select * from stumarks where score>=60) as temp D: Select * from (select * from stumarks ) as temp where score>=60