EasyString Functions

CONCAT and || operator for string building

The query

SQL
SELECT
  CONCAT(first_name, ' ', last_name) AS full_name,
  first_name || ' ' || last_name AS concat_with_op,
  CONCAT_WS(', ', last_name, first_name) AS formal_name
FROM employees;
Tested against PostgreSQL 16

Note

CONCAT_WS (with separator) skips NULLs automatically. || propagates NULLs.

Tables referenced