Concatenation operator

CONCAT

This will be used to combine two strings only.
Syntax: concat (string1, string2)

Ex:

select concat('computer',' operator') from dual;

output

concat('computer',' operator')
--------------------------------
computer operator
concatenation in SQL
concatenation in SQL

some more example

select concat('science',' park') from dual;
----------------------------------------------
science park
Note
If you want to combine more than two strings you have to use concatenation operator( || )
select 'How'||'are'||'you' from dual;
----------------------------------------------
Howareyou

Leave a Reply