Concatenating String Literals in pgsql

From: Raymond <support(at)bigriverinfotech(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Concatenating String Literals in pgsql
Date: 2003-08-10 22:06:00
Message-ID: 200308101506.00331.support@bigriverinfotech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How does one concat string literals in pgsql ?

The compiler complains about the concat operator in the following code
fragment:

RAISE EXCEPTION
''SELECT DISTINCT "t1"."usesysid" '' ||
''INTO userID '' ||
''FROM "pg_user" AS "t1" '' ||
''WHERE "t1"."usename" = current_user '' ||
''NOT FOUND'';

Thanks in advance.

Raymond

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2003-08-10 22:06:44 pros/cons re constraints on audit tables
Previous Message Gregory S. Williamson 2003-08-10 22:03:50 High volume use of postGres