----2 this 一次性额度视图
create view View_LimitS as
select * from limit
where ( convert(varchar(100),getdate(),12) > convert(varchar(8),EFFECTIVEDATE,12) ) and
(convert(varchar(8),EXPIRYDATE,12) < convert(varchar(100),getdate(),12) );
select * from View_LimitS;
--删除单个视图
drop view view1;
Effect