在将平面文件中的数据提取到数据工厂上的表时,需要在数据库列中插入日期 [英] Need to insert date in database column in while data ingestion in flat file to table on data factory

查看:75
本文介绍了在将平面文件中的数据提取到数据工厂上的表时,需要在数据库列中插入日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好团队

我需要一个有关数据工厂的技术建议.

I need one technical advise on data factory.

现在我在ADLS上有一个abc.txt文件,文件有6列,而我有一个表abc有7列(abc.txt中有6列,日期有1列).

now i have one abc.txt file at ADLS and file have 6 column and i have one table abc with 7 column (6 column from abc.txt and one column for date ).

我已经创建了具有复制活动的数据工厂管道,现在我需要使用utnow()函数进行日期列映射,以便在管道被触发时可以获取今天的日期.

i have created data factory pipeline with copy activity ,now i need date column mapping with utnow() function so i can get today date when pipeline getting triggered .

请告知!

请告诉我您是否需要帮助

please let me know if you need any help

问候

Ravi


推荐答案

好吧,如果它是您希望在第7列中所有行使用的getdate()值,则最简单的方法是在复制活动完成后使用查找活动.

Well, if it is the getdate() value you would want in your 7th column for all the rows then the easiest way would be to use the lookup activity once your copy activity is completed.

您只需要写下一条更新语句即可使用getdate()更新您的第7列

You would just need to write down an update statement which would update your 7th column with getdate()

希望这对您有所帮助.


这篇关于在将平面文件中的数据提取到数据工厂上的表时,需要在数据库列中插入日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆