X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AB19C474E44 for ; Thu, 6 Feb 2003 05:00:45 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 6A874474E42 for ; Thu, 6 Feb 2003 05:00:44 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id DF8D143A952; Thu, 6 Feb 2003 05:00:43 -0500 (EST) From: "betty" X-Newsgroups: comp.databases.postgresql.sql Subject: conversi ms-sql7 vs postgresql 7.3 Date: Thu, 6 Feb 2003 17:10:23 +0700 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 26 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/125 X-Sequence-Number: 11523 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.