fastload between table to table
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.


fastload between table to table Expand / Collapse
Author
Message
Posted 6/10/2008 5:33:44 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 7/3/2008 3:49:29 AM
Posts: 22, Visits: 21
Hi all

i'm looking for a clarification on fastload utility. my doubt is that, is it possible to load an empty table from some other populated table?. if yes could you please give me a sample script.

i tried the following script but its not working. its throwing an error at sql statement. error is "invalid column list". i tried here with different ways to get it done but didn't worked.

logon demotdat/tpch;
drop table err1;
drop table err2;
drop table test;
CREATE TABLE test,
no FALLBACK,
no AFTER journal,
no BEFORE journal
( start_date date NOT NULL,
end_date date NOT NULL,
bus_date date
);
set record text;
define startdate (char(8)), /*just for name sake i gave coz fload expecting this */
enddate (char(8)),
busdate (char(8))
file=c:\input3.txt; /*just for name sake i gave coz fload expecting this */
begin loading tpch.test
errorfiles tpch.err1, tpch.err2
insert into test(:startdate,:enddate,:busdate) sel start_date, end_date, bus_date from test_load;
end loading;
logoff;

i saw so many scripts that loads from flat file to empty table but not between table to table.

Thanks
Dixon




dixon
Post #11788
Posted 6/10/2008 5:37:25 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 4:46:44 AM
Posts: 134, Visits: 370
Hello,

FastLoad is the utility to load data from flat-files/data-files to empty tables. You can move data between two tables using BTEQ script.

Regards,

Adeel
Post #11789
Posted 6/11/2008 9:46:26 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 7/3/2008 3:49:29 AM
Posts: 22, Visits: 21
Hi thanks for your reply.
how about multiload and tpump? that also loads from flat file to a table and not from table to table?


dixon
Post #11802
Posted 6/11/2008 11:17:04 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 4:46:44 AM
Posts: 134, Visits: 370
They are the Load-Utilities and loading a table is done from external source, normally. :)

If you want to copy one table's data to other table, you can use INSERT SELECT statement.

Regards,

Adeel
Post #11811
« 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 12:44am

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