melbert2002
MIS
- Jul 16, 2004
- 153
Hello all,
I have a very large fixed length field text file that I have to import on a regular basis. When I import the data into my database this is fine, but what I need to do is change the data type.
Here is what I want to do:
1. Import the data to a temp_table
2. Transform data (ie char -> varchar)
3. Move data to real_table
4. Truncate temp_table
What is the best stratagy for doing this. I know about alter table but is there another way of doing this? I have to transform 205 columns everytime.
thanks
Mel
Thanks
I have a very large fixed length field text file that I have to import on a regular basis. When I import the data into my database this is fine, but what I need to do is change the data type.
Here is what I want to do:
1. Import the data to a temp_table
2. Transform data (ie char -> varchar)
3. Move data to real_table
4. Truncate temp_table
What is the best stratagy for doing this. I know about alter table but is there another way of doing this? I have to transform 205 columns everytime.
thanks
Mel
Thanks