I usually join the contents in two columns by column1 + column2
in SQL.
However, I saw one code which combines two columns by ||
. I ran the following code but basically get the exactly same result.
Is there any difference between using +
and ||
?
select CurrentDepartment ||'@' || NameId as Full_ID1, CurrentDepartment+'@'+NameId as Full_ID2
from dmf_dbo.personinfo