Oracle SQL concatenate multiple columns and add text

You have two options for concatenating strings and column values in Oracle:

CONCAT
Using ||



CONCAT example:

select CONCAT(ROW_ID,'text') from s_contact;

concat_sql

Using || example:

select ROW_ID || 'text' from s_contact;

||_sql


Source: StackOverflow

← Back to Home

Comments

Post a Comment