ZL_Order_PayedView
GO
CREATE VIEW [dbo].[ZL_Order_PayedView] AS
SELECT A.*,B.PayTime,B.PayPlatID FROM ZL_Orderinfo A LEFT JOIN ZL_Payment B
ON A.PaymentNo=B.PayNo WHERE A.PaymentNO IS NOT NULL AND A.PaymentNO !=''
detele from ZL_Order_PayedView
drop table ZL_Order_PayedView
TRUNCATE table ZL_Order_PayedView