作者:dhailing | 来源:互联网 | 2023-09-08 17:05
Imworkingonadatawarehouseprojectandwouldliketoknowhowto(preferablyinaDerivedColum
I'm working on a data warehouse project and would like to know how to (preferably in a Derived Column component in a Data flow) strip the date piece off of a SQL datetime record.
我正在开发一个数据仓库项目,并想知道如何(最好是在数据流中的Derived Column组件中)从SQL datetime记录中剥离日期。
Once I have the datetime converted to just a time I am going to do a lookup on the time to find the related time record in a time dimension table.
一旦我将日期时间转换为一段时间,我将在时间维度表中查找相关时间记录的时间。
Can someone give me a simple function to accomplish this inside a derived column transform?
有人能给我一个简单的函数来完成派生列转换中的这个吗?
Example: Transform a datetime such as "12/02/2008 11:32:21 AM" into simply "11:32:21 AM".
示例:将日期时间(例如“12/02/2008 11:32:21 AM”)转换为“11:32:21 AM”。
5 个解决方案