ZL_Order_ShareView
GO
CREATE VIEW [dbo].[ZL_Order_ShareView] AS
SELECT A.*,B.HoneyName RHoney,B.UserName RUName,B.salt AS UserFace FROM
(SELECT A.*,B.HoneyName AS CHoney,B.UserName AS CUName,B.GroupID FROM ZL_Order_Share A LEFT JOIN ZL_User B ON A.UserID=B.UserID) AS A
LEFT JOIN ZL_User AS B ON A.ReplyUid=B.UserID
detele from ZL_Order_ShareView
drop table ZL_Order_ShareView
TRUNCATE table ZL_Order_ShareView