//这是我的脚本
SELECT CASE WHEN iPaid_dt>= 1 THEN CONVERT(DATETIME, CONVERT(CHAR(8),iPaid_dt)) ELSE '' END AS [TRANSACTION DATE]
FROM MyTable
//我的输出是
1900-01-01 00:00:00.000
2012-11-11 00:00:00.000
2012-10-26 00:00:00.000
//预期输出:
2012-11-11 00:00:00.000
2012-10-26 00:00:00.000
//1900-01-01
输出应该只有'',什么是正确的脚本?注意:默认值为 0 iPaid_dt
。INT