SELECT STUFF('000000000', 9 - LEN(PTAT.PTAP_Count) + 1, LEN(PTAT.PTAP_Count), PTAT.PTAP_Count) FROM ( SELECT COUNT(1) AS PTAP_Count FROM #Detail_PTAP ) AS PTAT;
本文共 317 字,大约阅读时间需要 1 分钟。
SELECT STUFF('000000000', 9 - LEN(PTAT.PTAP_Count) + 1, LEN(PTAT.PTAP_Count), PTAT.PTAP_Count) FROM ( SELECT COUNT(1) AS PTAP_Count FROM #Detail_PTAP ) AS PTAT;
转载于:https://www.cnblogs.com/qiangshu/p/5216576.html