"Tony Marston" <tony(at)marston-home(dot)demon(dot)co(dot)uk> writes:
> I would like the option to use CONCAT(field1, ' ', field2) instead of the
> vertical bar syntax (field1 || ' ' || field2) as this is also available in
> other popular databases (MySQL, ORACLE).
|| is the SQL standard, CONCAT() is not. But feel free to write your
own functions:
create function concat(text,text) returns text as
'select $1 || $2' language sql strict immutable;
create function concat(text,text,text) returns text as
'select $1 || $2 || $3' language sql strict immutable;
... repeat up to whatever number of parameters seems needed ...
regards, tom lane