From: Francisco Hernandez <xy0xy0@earthlink.net>
To: pgsql-sql@postgresql.org
To: pgsql-general@postgresql.org
Subject: variables in SQL??
Date: Tue, 15 Aug 2000 23:57:54 -0700
Message-ID: <000f01c0074f$4dcd87e0$700c2304@francisco> (raw)
anyone know if SQL has variables?
what im trying to do is have a Sum of a colum.. as it goes forwards with the
cursor..
like so:
Price|Sum
5|5
4|9
10|19
2|21
7|28
i can do it in the accessing language.. like PHP, Python, Perl etc..
but i wanted to know if the actuall DB could do it?
any ideas?
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: xy0xy0@earthlink.net, pgsql-general@postgresql.org
Subject: Re: variables in SQL??
In-Reply-To: <000f01c0074f$4dcd87e0$700c2304@francisco>
References: <000f01c0074f$4dcd87e0$700c2304@francisco>
* 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