pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@boutiquenumerique.com>
To: db@ke5in.com
To: pgsql-sql@postgresql.org
Subject: Re: assign the row count of a query to a variable
Date: Fri, 14 Jan 2005 22:13:57 +0100
Message-ID: <opskl2ljx4th1vuj@musicbox> (raw)
In-Reply-To: <1386.67.87.30.165.1105735384.squirrel@www.ke5in.com>
References: <1386.67.87.30.165.1105735384.squirrel@www.ke5in.com>


        var := count(*) from T;

or :

        SELECT INTO var count(*) from T;



view thread (3+ messages)  latest in thread

Message-ID: <opskl2ljx4th1vuj@musicbox>
Permalink:  ../opskl2ljx4th1vuj@musicbox/
Also on:    postgresql.org/message-id/opskl2ljx4th1vuj@musicbox

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lists@boutiquenumerique.com, db@ke5in.com
  Subject: Re: assign the row count of a query to a variable
  In-Reply-To: <opskl2ljx4th1vuj@musicbox>

* 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