dbTalk Databases Forums  

how to add row data into a newly added column

comp.database.oracle comp.database.oracle


Discuss how to add row data into a newly added column in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David
 
Posts: n/a

Default how to add row data into a newly added column - 06-01-2004 , 04:01 PM






Hello,

I need to add a single value such as 2004 for a newly added column in
a production data table. I got several ascii data files distinguished
by year and would like to load all of those into a single Oracle
table. Each year, there are about 100,000 rows. So I need to create a
column called YEAR and intert the Year value for each year's data. How
can I do this?

I appreciate your help.

Thanks

Reply With Quote
  #2  
Old   
David
 
Posts: n/a

Default Re: how to add row data into a newly added column - 06-03-2004 , 04:06 PM






ning_1898 (AT) yahoo (DOT) com (David) wrote in message news:<37032184.0406011301.62bbaa06 (AT) posting (DOT) google.com>...
Quote:
Hello,

I need to add a single value such as 2004 for a newly added column in
a production data table. I got several ascii data files distinguished
by year and would like to load all of those into a single Oracle
table. Each year, there are about 100,000 rows. So I need to create a
column called YEAR and intert the Year value for each year's data. How
can I do this?

I appreciate your help.

Thanks
I find the solution for myself. I can first load the data into a table
without the newly added column and then use insert into command to
insert the data into the new table. In the insert values add the
constant value, such as 2004. It will work.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.