IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_shop]') AND type = 'V')
DROP VIEW [dbo].[mps_shop]
GO
 
CREATE view [dbo].[mps_shop] as
 
  select * from mps_depart where dp_isdepart=1