IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[privateview_22]') AND type = 'V')
DROP VIEW [dbo].[privateview_22]
GO
CREATE VIEW [dbo].[privateview_22]
AS
select 
prd_id as objid, 
prd_gzmc as [故障描述],
prd_qtsm as [其他说明]
from mps_prd2 
where CHARINDEX('临',prd_code) = 0 and prd_pcid =12