IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[privateview_39]') AND type = 'V')
DROP VIEW [dbo].[privateview_39]
GO
CREATE VIEW [dbo].[privateview_39]
AS
select prd_id objid, 
prd_gl [归类],
prd_xh1 [细化1],
prd_xh2 [细化2],
prd_xh3 [细化3]
from mps_prd2 where prd_pcid = 18 and charindex('临',prd_code) = 0