Skip site navigation (1) Skip section navigation (2)

Re: Stupid question: concatenating strings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: justinlong(at)strategicnetwork(dot)org
Cc: pgsql-novice(at)hub(dot)org
Subject: Re: Stupid question: concatenating strings
Date: 2000-10-18 17:21:48
Message-ID: 5547.971889708@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
The string concatenation operator in SQL is ||, not +.

Also, substr's start-index argument counts from 1 not 0.  Otherwise
you've got the right idea...

			regards, tom lane

In response to

Responses

pgsql-novice by date

Next:From: Justin LongDate: 2000-10-18 17:28:55
Subject: Thanks for all the answers!
Previous:From: bmccoyDate: 2000-10-18 17:17:48
Subject: Re: Stupid question: concatenating strings

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group