The standard SQL operator for concatenation is ||
, so you want:
SELECT Name, Surname, (NAME || ' ' || SURNAME) as full_name
FROM Worker
WHERE Born = '1988';
Many databases also support a CONCAT()
function, although logically you want at least two arguments. SQL Server uses +
for string concatenation, but that is not widespread.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…