conversi ms-sql7 vs postgresql 7.3 - Mailing list pgsql-sql

From betty
Subject conversi ms-sql7 vs postgresql 7.3
Date
Msg-id b1tbo9$2d0t$1@news.hub.org
Whole thread Raw
Responses Re: conversi ms-sql7 vs postgresql 7.3  (Richard Huxton <dev@archonet.com>)
List pgsql-sql
Hi..

I have table xx:
id  debet       credit           balance
1  1000        0                   0
2   2000       0                   0
3         0       2500             0
4         0         100             0

command in ms-sql 7 can use calculate field (column) balance from id=1 to
id=4:
"update xx set bal=balance=bal+debet-credit"
result:
id  debet       credit           balance
1  1000        0                  1000
2   2000       0                   3000
3         0       2500             500
4         0         100             400

How command sql can use in psotgresql 7.3?

thank's a lot
betty.





pgsql-sql by date:

Previous
From: thatsamiam@yahoo.com (Sam Iam)
Date:
Subject: get # of rows while doing SELECT with LIMIT at same time ?
Next
From: "codeWarrior"
Date:
Subject: Re: automatic time/user stamp - rule or trigger?