判断视图是否存在


  IF EXISTS(SELECT 1 FROM sys.views WHERE name='View_ProductInStockBill')
DROP VIEW View_ProductInStockBill
GO

原文地址:https://www.cnblogs.com/YyuTtian/p/4610953.html