IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[privateview_19]') AND type = 'V')
DROP VIEW [dbo].[privateview_19]
GO
CREATE VIEW [dbo].[privateview_19]
AS
select cu_name [姓名],cu_account [工号],cu_depart [部门],cu_title [职务],
cu_branch [公司],cu_mobile [手机号],cu_dpid [部门id],
cu_otid [岗位id],cu_bcid [公司id],cu_id objid
from mps_employee 
where cu_status = '在职'