pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bernd Hoffmann <info@unixserver.info>
To: pgsql-php@postgresql.org
Subject: Re: functions with plpgsql
Date: Sun, 10 Aug 2003 02:33:36 +0200
Message-ID: <025d01c35ed7$0ad4e590$3214a8c0@server> (raw)
References: <01b101c35eb3$6e75b2b0$3214a8c0@server>
	<200308091804.10545.akopciuch@olympusproject.org>

Hallo Andy,

> I do not think you can evaluate a declared vairable as a table name in the
> SELECT statement.

where can I find some docu about declare a table by variable.

> I don't think you really need to do this though.  If you have the table
name
> already.
> why go:
> SELECT next_id(logs);
> SELECT MAX(id) + 1 FROM logs;

it's only a example, I got everytime the error:

PostgreSQL meldet: ERROR: parser: parse error at or near "$1"

PS.: Excuse me, for my bad english :)

MfG

Bernd





view thread (4+ messages)  latest in thread

Message-ID: <025d01c35ed7$0ad4e590$3214a8c0@server>
Permalink:  ../025d01c35ed7$0ad4e590$3214a8c0@server/
Also on:    postgresql.org/message-id/025d01c35ed7$0ad4e590$3214a8c0@server

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: info@unixserver.info
  Subject: Re: functions with plpgsql
  In-Reply-To: <025d01c35ed7$0ad4e590$3214a8c0@server>
  References: <01b101c35eb3$6e75b2b0$3214a8c0@server> <200308091804.10545.akopciuch@olympusproject.org> <025d01c35ed7$0ad4e590$3214a8c0@server>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox