Update query in ODBC

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
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Update query in ODBC

Post by bkumar103 »

Hi,
I have a pipe delimited file with follwoing column:

Countryname
oldid
newid
newname

I have the table with following column
country
id
name
datetimestamp

I have to replace the old id with new id in the table.
I am using following query in odbc

update <table> set id=?, name=? where country=? and id = ?

after running the job i am getting following error

[DataStage][SQL Client][ODBC][DataDirect][ODBC Oracle Wire Protocol driver]Error in SQL Parser.|

Could you please help in resolving this

Thanks,
Birendra
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Re: Update query in ODBC

Post by betterthanever »

post the complete error
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are the first two columns marked as Key fields?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply