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.
我有一个 SQL 语句,它从表中选择了 0.0000 之类的值。
但是,当在 SSIS 中生成文件时,该值变为 .000。
无论如何将值格式化为0.000?如果需要写一个脚本组件怎么做呢?
尝试将值转换为字符串,然后再将其写入文件。假设 A 是字段的名称,那么派生列将是
A < 1 ? "0" + (DT_STR,10,1252)A : (DT_STR,10,1252)A