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

Re: Sequences Question

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Jonathon Batson" <jonathon(at)octahedron(dot)com(dot)au>,<pgsql-novice(at)postgresql(dot)org>
Subject: Re: Sequences Question
Date: 2002-10-28 17:05:45
Message-ID: web-1801885@davinci.ethosmedia.com (view raw or flat)
Thread:
Lists: pgsql-novice
Jonathon,

> 1> the seq is definately there 
> 2> syntax is a question?? 
> so I also tried removing the " " around both instances of the
> sequence
> name
> and received the same error.  Also tried removing all quotes but then
> a
> parse error occurs.

Real simple ... within a function, you need to use a
double-single-quote, '' , rather than a double-quote ".

PostgreSQL only uses double-quotes for "quoted identifiers", that is
database object names which are not allowed, such as "Table One" and
"1st_try".  All other quoting purposes are fulfilled by single quotes
'.

-Josh

In response to

pgsql-novice by date

Next:From: Andreas GabrielDate: 2002-10-29 09:41:47
Subject: Postgres DB on smbfs?
Previous:From: Jules AlbertsDate: 2002-10-28 15:06:07
Subject: Re: Upgrading from 7.2.1 to 7.2.3 on RH7.3

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