select
SUBSTR(B.dbilldate,1,10) AS 单据日期 --B.dbilldate NC65 开票日期 字段类型char(19)引用模型UFDate
FROM SO_SALEINVOICE_B A
LEFT JOIN SO_SALEINVOICE B
ON A.csaleid=B.csaleid
WHERE B.capproveid IS NOT NULL
AND B.dbilldate >=@日期
AND B.dbilldate is not null
GROUP BY
SUBSTR(B.dbilldate,1,10)
语句其他部分都好着,就是这个参数查询不行
|