标签: sql-server-2012
您不能<=签名以防万一,然后分开
SELECT INSTALLMENTDATE, CASE WHEN EMISTATUS = 0 THEN '' WHEN EMISTATUS = 1 THEN CONVERT(DATETIME, INSTALLMENTDATE -2, 103) <= CONVERT(DATETIME, '2019-09-15', 120) FROM LOANSCHEDULEDETAILS