如何使用Teradata Studio将CSV文件中的数据加载到表中 [英] How to load data from a csv file into a table using Teradata Studio

查看:370
本文介绍了如何使用Teradata Studio将CSV文件中的数据加载到表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这里有人可以帮助我吗?我必须将csv文件中的数据加载到表中,但我不知道如何.

someone here may help me on that? I have to load data from a csv file into a table but I have no idea how.

csv文件中大约有1200万条记录.

There are about 12 million records into the csv file.

谢谢

推荐答案

我已使用TERADATA SQL Assistant中提供的IMPORT函数将数据加载到Teradata中.

I have loaded data into Teradata using the IMPORT function available in the TERADATA SQL Assistant.

但是要处理如此大量的数据,我不确定下面说明的方法是否足够有效.

But handling this amount of data I am not sure whether the method I explain you below will be efficient enough.

但是,您可以尝试以下操作:

However, you may try something like the below:

如果您使用的是TERADATA SQL Assistant:

If you are using TERADATA SQL Assistant:

  1. 转到文件"菜单->单击导入"选项
  2. 您应该准备好一个表格,其中包含CSV文件中的所有必需列 和正确的数据类型.
  3. 在SQL Assistant中,编写以下查询:
  1. Goto FILE menu-> click IMPORT option
  2. You should have a table ready with all the required columns in your CSV file and correct datatype.
  3. In SQL Assistant, write the below query:

INSERT INTO TABLE_NAME VALUES(?,?,?,?....);

  1. 执行上述查询后,TERADATA将询问您要从中导入数据的文件,您只需要浏览并选择文件即可开始导入.

P.S:既然您有1200万条记录,那肯定会花费很多时间.

P.S: Since you have 12 m records, it will definitely take lot of time.

这篇关于如何使用Teradata Studio将CSV文件中的数据加载到表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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