Received: from lee.k12.nc.us (shomer.lee.k12.nc.us [207.4.71.118]) by hub.org (8.9.3/8.9.3) with ESMTP id XAA06629 for ; Sun, 11 Jul 1999 23:51:49 -0400 (EDT) (envelope-from joden@lee.k12.nc.us) Received: from lee.k12.nc.us (sanford0-0010.dyn.interpath.net [207.59.120.74]) by lee.k12.nc.us (8.9.1a/8.9.1) with ESMTP id XAA16681; Sun, 11 Jul 1999 23:40:39 -0400 Message-ID: <378963DA.768C173E@lee.k12.nc.us> Date: Sun, 11 Jul 1999 23:41:15 -0400 From: James Olin Oden X-Mailer: Mozilla 4.06 [es] (Win95; I) MIME-Version: 1.0 To: "George P. Esperanza" CC: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Status Checking References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > Hi! > > Sorry for posting this simple question.... > > I'm just new to postgres and i'm using PERL interface to access my > databases. I just want to know how can i check or get the status if my > query command has no errors. > > $dbh = Pg::connectdb("dbname=MMS"); > > How do i check if there's no error connecting to my database MMS? > > $sth = $dbh->exec("select syskey from syskey where syskey = > '$syskey'"); > $sth = $dbh->exec("insert into syskey values('$syskey', '$value', > '$desc')"); > $sth = $dbh->exec("delete from syskey where val='test'"); > > How to i check if my select, insert and delete statement has no error? > All of these questions can be answered by typing: man Pg and reading the text. Cheers...james > > Thanks... > > George > > --------------------------------------------------------------------- > | George P. Esperanza e-mail : george@laguna.net | > | Laguna Internet phone : (049) 545-2358 | > | 6 East Arcade Calamba Trade Center | > | Calamba, Laguna | > ---------------------------------------------------------------------