Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6ALSYa20820 for ; Tue, 10 Jul 2001 17:28:34 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f64GkTa67794 for ; Wed, 4 Jul 2001 12:46:29 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f64Gh6x03485 for pgsql-sql@postgresql.org; Wed, 4 Jul 2001 12:43:06 -0400 (EDT) (envelope-from news) From: "Jason Alexander" X-Newsgroups: comp.databases.postgresql.sql Subject: Updated rowcount Date: Wed, 4 Jul 2001 11:42:52 -0500 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 26 Message-ID: <9hvh2m$3cn$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-sql@postgresql.org X-Archive-Number: 200107/120 X-Sequence-Number: 3907 Hello all, I'm attempting to find the property (if it exists) where I can check to see how many rows were affected during an UPDATE. An equivalent would be @@ROWCOUNT in SQL Server, etc... As an example: UPDATE tablefoo SET foo1 = 'spork' WHERE foo2 = 'goomba' IF @@ROWCOUNT = 0 INSERT INTO tablefoo . . . . And, so on... TIA, -Jason