ZL_View
GO
Create View [dbo].[ZL_View] AS
SELECT A.*,B.SchoolName,C.GradeName,D.UserName FROM ZL_Exam_ClassRoom A LEFT JOIN ZL_School B ON A.SchoolID=B.ID LEFT JOIN ZL_Grade C ON C.GradeID=A.Grade LEFT JOIN ZL_User D ON D.UserID=A.CreateUser
detele from ZL_View
drop table ZL_View
TRUNCATE table ZL_View