Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

is nvl is required before concatenation to check for null ness.

947771Apr 26 2013 — edited Apr 26 2013
hi,

i noticed when any variable or constant is concatenated with other constant or variable it does not get converted into NULL.

is it correct in all cases or should i use NVL(V_xyz,' ') to concatenate as shown in 2) example.

1)
open cv_a for
select 'sdf' || v_xyz from dual;

2)

open cv_a for
select 'sdf' || nvl(v_xyz,' ') from dual;


yours sincerely
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2013
Added on Apr 26 2013
2 comments
1,111 views