Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Change value in IMPORT

Question posted by: =?ISO-8859-2?Q?Gregor_Kova=E8?= (Guest) on July 29th, 2008 07:55 AM
Hi!

Is it possible to change a value of a column in IMPORT command.
Something like:

IMPORT FROM TABLE1.IXF OF IXF METHOD N (TAB_NAME, TAB_DATE) INSERT INTO
TMP_TABLE1(TAB_NAME, CURRENT DATE - 2 DAYS)

Best regards,
Kovi

--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Joachim Klassen's Avatar
Joachim Klassen
Guest
n/a Posts
July 29th, 2008
04:25 PM
#2

Re: Change value in IMPORT
AFAIK not with IMPORT. The only way I can think of is the use of a
INSERT Trigger on the target table

HTH
Joachim

On 29 Jul., 09:50, Gregor Kova <gregor.ko...@mikropis.siwrote:
Quote:
Hi!
>
Is it possible to change a value of a column in IMPORT command.
Something like:
>
IMPORT FROM TABLE1.IXF OF IXF METHOD N (TAB_NAME, TAB_DATE) INSERT INTO
TMP_TABLE1(TAB_NAME, CURRENT DATE - 2 DAYS)
>
Best regards,
* * * * Kovi
>
--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| *In A World Without Fences Who Needs Gates? * |
| * * * * * * *Experience Linux. * * * * * * * *|
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-



=?ISO-8859-2?Q?Gregor_Kova=E8?='s Avatar
=?ISO-8859-2?Q?Gregor_Kova=E8?=
Guest
n/a Posts
July 30th, 2008
06:15 AM
#3

Re: Change value in IMPORT
Yes, you are right, but the problem with the trigger is that I don't
have an elegant way to communicate the new value I want for a column in
a row.

Joachim Klassen pravi:
Quote:
AFAIK not with IMPORT. The only way I can think of is the use of a
INSERT Trigger on the target table
>
HTH
Joachim
>
On 29 Jul., 09:50, Gregor Kova <gregor.ko...@mikropis.siwrote:
Quote:
>Hi!
>>
>Is it possible to change a value of a column in IMPORT command.
>Something like:
>>
>IMPORT FROM TABLE1.IXF OF IXF METHOD N (TAB_NAME, TAB_DATE) INSERT INTO
>TMP_TABLE1(TAB_NAME, CURRENT DATE - 2 DAYS)
>>
>Best regards,
> Kovi
>>
>--
>____________________________
>|http://kovica.blogspot.com|
>-----------------------------~-~-~-~-~-~-~-~-~-~-
>| In A World Without Fences Who Needs Gates? |
>| Experience Linux. |
>-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-

>


--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-

situ's Avatar
situ
Guest
n/a Posts
August 6th, 2008
02:05 PM
#4

Re: Change value in IMPORT
On Jul 30, 11:10 am, Gregor Kovač <gregor.ko...@mikropis.siwrote:
Quote:
Yes, you are right, but the problem with the trigger is that I don't
have an elegant way to communicate the new value I want for a column in
a row.
>
Joachim Klassen pravi:
>
>
>
Quote:
AFAIK not with IMPORT. The only way I can think of is the use of a
INSERT Trigger on the target table

>
Quote:
HTH
Joachim

>
Quote:
On 29 Jul., 09:50, Gregor Kovaè <gregor.ko...@mikropis.siwrote:
Quote:
Hi!

>
Quote:
Quote:
Is it possible to change a value of a column in IMPORT command.
Something like:

>
Quote:
Quote:
IMPORT FROM TABLE1.IXF OF IXF METHOD N (TAB_NAME, TAB_DATE) INSERT INTO
TMP_TABLE1(TAB_NAME, CURRENT DATE - 2 DAYS)

>
Quote:
Quote:
Best regards,
Kovi

>
Quote:
Quote:
--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-

>
--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-


Can't to just make it have default value for that column and while
loading just ignore that column

Regards,
Sridhar.S

 
Not the answer you were looking for? Post your question . . .
190,081 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors