Page 1 of 1
Trim function - Oracle Enterprise
Posted: Wed May 17, 2006 9:55 am
by arun_im4u
Hi,
How can I trim the columns in a user defined sql via Oracle enterprise stage?? I tried using Trim(column_name) in my user-defined sql and it did not work.
Do I have to use a transformer to trim fields??
Thanks,
AR.
Re: Trim function - Oracle Enterprise
Posted: Wed May 17, 2006 10:01 am
by calyan
arun_im4u wrote:Hi,
How can I trim the columns in a user defined sql via Oracle enterprise stage?? I tried using Trim(column_name) in my user-defined sql and it did not work.
Do I have to use a transformer to trim fields??
Thanks,
AR.
you can use Trim in both Transformer and OCI enterprise stage.
Posted: Wed May 17, 2006 10:10 am
by arun_im4u
I used
select trim(column name) from table in a user-defined sql from my oracle enterprise stage and it did not work.
Gave me this error: Lookup_12: Error when checking operator: Key field "column name" not found in input schema
main_program: Could not check all operators because of previous error(s)
If i take the trim off then it works?? The datatype is char.
Any suggestions.
Posted: Wed May 17, 2006 10:35 am
by DSguru2B
Try Rtrim()