视图

CREATE VIEW [User](name,password,quxi)
    AS 
    select Student.StudentName,Student.PassWord,Student.QuXi from Student
    union
    select Teacher.TeacherName,Teacher.PassWord,Teacher.QuXi from Teacher
    union
    select Manager.ManagerName,Manager.PassWord,Manager.QuXi from Manager;

SELECT * FROM [User]

 

posted @ 2013-06-04 09:49  张国朋  阅读(129)  评论(0编辑  收藏  举报