CONVERT(VARCHAR(30),pb.BALANCE_DATE,111) AS BALANCE_DATE
转换日期格式为:yyyy/MM/dd
(CASE WHEN substring(bol.CODE,1,2)='01' THEN '购销'
WHEN substring(bol.CODE,1,2)='02' THEN '购销'
ELSE '物流'
END)
CONVERT(VARCHAR(30),pb.BALANCE_DATE,111) AS BALANCE_DATE
转换日期格式为:yyyy/MM/dd
(CASE WHEN substring(bol.CODE,1,2)='01' THEN '购销'
WHEN substring(bol.CODE,1,2)='02' THEN '购销'
ELSE '物流'
END)