Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to bulk import a CSV or a TXT file trough command into a Teradata database

Status
Not open for further replies.

multipledatabases

Systems Engineer
May 3, 2020
1
0
0
PA
I'm using the following command in SQL Server to create a temporary table, then import values from a CSV file, then consult all those values.

I'm looking for a similar way of doing this exact thing but in Teradata Database. Any import wizard tool is not a possible option for me. I want to be able to do this, only with command as I do with SQL Server.

It's possible to do this in an editor tool like Teradata SQLAssistant or Toad Data Point?

create table #Temporary ( EventID int, EventEnumDays int, EventType int )

BULK INSERT testdb.#temporary FROM 'C:\Users\MyUser\Desktop\bulkinsert.csv' WITH (FIELDTERMINATOR = ',');

Select * from #temporary;

Thanks, any help its really appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top