How to import data from Excel file
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


How to import data from Excel file Expand / Collapse
Author
Message
Posted 12/4/2007 8:48:19 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/10/2008 2:21:18 AM
Posts: 1, Visits: 10
Hi all,

I need to import data from Excel file in Teradata.
Can you help me?

Thanks,
Anthony
Post #9960
Posted 12/5/2007 12:43:38 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 8/26/2008 4:53:36 PM
Posts: 50, Visits: 220
There are quite a few posts on this topic. Please search the forum with key word 'import'.
Post #9973
Posted 12/13/2007 1:21:10 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2/29/2008 4:40:14 PM
Posts: 10, Visits: 6
Hi Anthony ..

Here is what I found quite easy to do ..

1. Import the spreadsheet into an Access Database. You can do this very easily, no complications.
2. Export from Access to a text file with .csv and a set delimiter.
3. In Queryman, set the delimiter to what you exported with in Access
4. Import Data using Queryman .. (File-Import data, and then a single insert statement with your variables .. )

Hope this and other responses help you .. Thanks ..



Regards .. John Abraham ..
Post #10044
Posted 5/8/2008 5:39:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/8/2008 6:56:41 AM
Posts: 1, Visits: 8
Hi,


Try this.

1)Save the file as comma delimited file from Excel (CSV File).
2)In SQL Assistant set the Delimiter as ","(comma) . ( Delimiter is available in Menu Tools , Options, Import/Export)
3)In SQL Assistant enable the Import mode(select "Import data" in file menu).
4)Run the query : INSERT INTO table_name(Col1,Col2.....Coln);


Example

DDL :
create table student(
Reg_no integer,
name varchar(20),
Age int)
unique primary index(Reg_no);

Data in File:

100,s1,24
101,s2,18


Query :
Insert into student(?,?,?);


Follow this method if the number of rows are very less.



 

Post #11382
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 8:37pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 8 queries. Compression Disabled.