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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Ignore nulls and concatenate

224774Feb 27 2002
I am trying to select values from one table, and insert these values into another table.field using concatenation. This works, but it adds the null values to the string also. Is there any way to ignore null values in Oracle?
Thanks.


update table1
set field1 =
(select field1||field2||field3||field4||
field5||field6 from table2
where table1.refnum = table2.refnum);
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2002
Added on Feb 27 2002
16 comments
9,341 views