pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patrik Kudo <kudo@partitur.se>
To: Alexander Stetsenko <as@anapa.org.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: Novice trouble with plpgsql
Date: Fri, 31 Mar 2000 14:59:51 +0200
Message-ID: <38E4A147.9CE24925@partitur.se> (raw)
References: <38E498C6.C1D95B2F@anapa.org.ru>

try:

select max(name_of_column) from name_of_table;

Regards,
Patrik Kudo

Alexander Stetsenko wrote:
> 
> Hello All
> Help me please !
> I need to select max value in plpgsql, but
> such code seems is not corect:
>         select into var max(col) from table ;
> How can I do this ?
> 
> Thanks you all.



view thread (4+ messages)  latest in thread

Message-ID: <38E4A147.9CE24925@partitur.se>
Permalink:  ../38E4A147.9CE24925@partitur.se/
Also on:    postgresql.org/message-id/38E4A147.9CE24925@partitur.se

 · 

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-sql@postgresql.org
  Cc: kudo@partitur.se, as@anapa.org.ru
  Subject: Re: Novice trouble with plpgsql
  In-Reply-To: <38E4A147.9CE24925@partitur.se>
  References: <38E498C6.C1D95B2F@anapa.org.ru> <38E4A147.9CE24925@partitur.se>

* 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