Page 1 of 1

Update query in ODBC

Posted: Tue Mar 10, 2009 11:28 am
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,

Re: Update query in ODBC

Posted: Tue Mar 10, 2009 11:45 am
by betterthanever
post the complete error

Posted: Tue Mar 10, 2009 12:04 pm
by chulett
Are the first two columns marked as Key fields?