Concatenation in PostgreSQL


Concatenate using || and string in side single quotes:

SELECT col1||' string goes here '||col2 AS msg FROM tbl WHERE col1=10

Comments

Popular posts from this blog

Database, schema, and table sizes in Greenplum

Greenplum update with multiple tables

Show running queries on Postgresql/Greenplum