Skip site navigation (1) Skip section navigation (2)

ResultSet....

From: "Robson Martins" <robson(at)netalfa(dot)com(dot)br>
To: "pgsql-interfaces" <pgsql-interfaces(at)postgresql(dot)org>
Subject: ResultSet....
Date: 1999-07-21 13:23:40
Message-ID: 000701bed37c$3fe796a0$1ed4d2c8@Designer2.netalfa.com.br (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hello all, i want to make a select count(*) and set a variable with this value i''m using the command:
   rs = st.executeQuery("select count(*) from imoveis where imo_situ = 'venda' and imo_tipo = 'kiti'");
   total = rs;
But this doesnt work!
How do i do what i want?
I use Postgresql 6.5 and everything is working right (database connection), i only want to know how do i do this!
Help me..
Hugs...Robson

Responses

pgsql-interfaces by date

Next:From: Thomas LockhartDate: 1999-07-21 13:53:24
Subject: Re: [INTERFACES] [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL
Previous:From: Hugh LawsonDate: 1999-07-21 12:27:48
Subject: Re: [INTERFACES] [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group