MySQL -> Oracle, CONCAT

mysql oracle sql concatenationoperator

Mon Oct 06 07:49:00 -0700 2008

CONCAT in MySQL takes any number of values.

CONCAT in Oracle takes only TWO values.

Nested CONCAT statements can mimic the MySQL behavior, but that’s tremendously ugly.

Instead use the concatenation operator, ‘||’, like so:

SELECT ‘Hello’ || ’ ’ || ‘World’ FROM DUAL;

blog comments powered by Disqus