variables in SQL?? - Mailing list pgsql-general

From Francisco Hernandez
Subject variables in SQL??
Date
Msg-id 000f01c0074f$4dcd87e0$700c2304@francisco
Whole thread Raw
List pgsql-general
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?


pgsql-general by date:

Previous
From: Ned Lilly
Date:
Subject: Re: [HACKERS] Open Source Database Routs Competition in New BenchmarkTests
Next
From: Gilles Cuesta
Date:
Subject: Putting PGSQL on several disks