Update action in ODBC stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Update action in ODBC stage

Post by snassimr »

Hi !

I want to choose Replace Existing rows Update I see in View SQL the SQL generated with clause where in delete statement .
But how I can define the Where clause ?

I cant edit the SQL generated
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Like all generated SQL, the 'where' clause is defined strictly by which fields you have marked as Keys.

Are you sure you need to use Replace Existing? It is different from Update in that it does a delete and insert for each record rather than just a simple update. It would typically (only?) be used if you are updating something like PK fields in a DBMS that didn't allow that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
to add on what craig said.
you can also have some controll if you'll use a user defined syntax.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Post Reply