[odb-users] Concatenation of columns

Reza Jahanbakhshi reza.jahanbakhshi at gmail.com
Tue Dec 11 08:47:39 EST 2012


Hi,

Concatenation syntax varies from one DBMS to another. Is there any facility
in ODB query language to do this in a cross DBMS manner? I think
overloading of operator | could be a good candidate.

-- SQL Server / Microsoft Access
SELECT FirstName + ' ' + LastName As FullName FROM Customers

-- Oracle
SELECT FirstName || ' ' || LastName As FullName FROM Customers

-- MySQL
SELECT CONCAT(FirstName, ' ', LastName) As FullName FROM Customers


More information about the odb-users mailing list