Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: what to put in place of null
Harvinder Singh wrote:
>
> Hi,
>
> I have a cursor declared as
> cursor c1 is
> select dd,dd1,dd2,dd3 from dd
> union
> select null,null,dd2,dd3 from dd1;
>
> i am getting error:
> *
> ERROR at line 1:
> ORA-01790: expression must have same datatype as corresponding expression
> ORA-06512: at "DY.REST", line 4
> ORA-06512: at "DY.REST", line 10
> ORA-06512: at line 1
>
> what to replace null with......
> dd1 has only 2 columns dd2 and dd3.....
>
> Thanks
> Harvinder
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
to_whatevertype_of_corresponding_not_null_column(NULL)
NULL can have a type with oracle ...
-- Regards, Stephane Faroult Oriole Corporation Voice: +44 (0) 7050-696-269 Fax: +44 (0) 7050-696-449 Performance Tools & Free Scripts -------------------------------------------------------------- http://www.oriole.com, designed by Oracle DBAs for Oracle DBAs -------------------------------------------------------------- -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stephane Faroult (sfaroult_at_oriole.com) INET: sfaroult_at_oriole.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Jun 05 2001 - 16:41:38 CDT