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.
我有一个派生列数据流组件,我需要将数据插入到表中。
我在将以下字符串转换为 DATETIME "20130822 14:52:53" 时遇到问题,我该如何处理?
请协助
派生列代码:
(DT_DBTIMESTAMP)(SUBSTRING(LTRIM(string),1,4) + "-" + SUBSTRING(LTRIM(string),5,2) + "-" + SUBSTRING(LTRIM(string),7,2) + SUBSTRING(LTRIM(string),9,LEN(LTRIM(string)) - 7))
结果:
string date 20130822 14:52:53 2013-08-22 14:52:53.000