ZL_Order_ProSaleView
GO
CREATE VIEW [dbo].[ZL_Order_ProSaleView] AS
SELECT A.Pronum,A.AllMoney,A.ProID,ZL_Commodities.Proname,ZL_Commodities.Nodeid,ZL_Node.NodeName,ZL_Orderinfo.PaymentNo,ZL_Orderinfo.OrderStatus,ZL_Payment.PayTime
,ZL_Orderinfo.StoreID
FROM ZL_CartPro A
LEFT JOIN ZL_Commodities ON A.ProID=ZL_Commodities.ID
LEFT JOIN ZL_Node ON ZL_Commodities.NodeID=ZL_Node.NodeID
LEFT JOIN ZL_Orderinfo ON A.Orderlistid=ZL_Orderinfo.ID
LEFT JOIN ZL_Payment ON ZL_Orderinfo.PaymentNo=ZL_Payment.PayNo
detele from ZL_Order_ProSaleView
drop table ZL_Order_ProSaleView
TRUNCATE table ZL_Order_ProSaleView