Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何删除列值中的左填充零。列的数据类型是 Unicode 字符串 [DT_WSTR]。请帮我。
将其转换为 DT_I4,然后再转换回 DT_WSTR,这应该去掉前导零。
Replace(Ltrim(Replace(column1, '0', ' ')), ' ', '0')
这将删除您的前导零,但请确保您的字符串没有任何空格,此代码不适用于这种情况