且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从 SQL SSIS 中的日期时间字符串中去除日期?

更新时间:2023-10-31 17:55:58

我只想转换为 DT_DBTIME 类型(使用派生列转换或转换类型转换).DT_DBTIME 只包含日期/时间的(小时、分钟、秒)部分,因此您将摆脱日期部分.

I would just do a cast to DT_DBTIME type (using Derived Column transform, or Convert type transform). DT_DBTIME contains just (hours, minutes, seconds) part of the date/time, so you'll get rid of the date part.