Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: LONG combine VARCHAR2

Re: LONG combine VARCHAR2

From: William Robertson <williamr2019_at_googlemail.com>
Date: 16 Jan 2007 02:20:48 -0800
Message-ID: <1168942846.637755.281890@v45g2000cwv.googlegroups.com>

peter wrote:
> select text from my_views where view_name='MEL_VIEW'and owner='CU'
> union
> select owner from my_views_desc where view_name='MEL_VIEW'
> /
> select text from my_views where view_name='MEL_VIEW'and owner='CU'
> *
> ERROR at line 1:
> ORA-01790: expression must have same datatype as corresponding
> expression
>
> Here text has long datatype and owner has varchar2, I have to combine
> both is there any possiblity to do this,
> without recreate this table with same datatype.
>
> TO_CHAR is not working here.

No, unfortunately LONG has always been extremely inflexible. I sometimes wish Oracle would stop using it in the data dictionary as they have been telling us to do in our applications for years. Received on Tue Jan 16 2007 - 04:20:48 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US