Cursor need it?

From: Lucas Hernndez <lucashdz(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Cursor need it?
Date: 2005-06-08 14:44:27
Message-ID: 42A7044B.4080604@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I am a new postgres user

I want to get a list of tables from pg_tables where tables are like
‘%wo%’ (for example).. and then query that list ….

Select count(*) from tableVARIABLENAMEFROMFIRSTQUERY

In SQL SERVER I can do that using cursor but in postgresql I don’t
understand how to use cursors

Here is what I am trying to do
for each table on the list
Select tablename, count(*) tables from ( list of tables)

tablename tables
table1 25
table2 35

Any Idea would be appreciated

Thanks

Lucas

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-06-08 14:47:41 Re: How do write a query...
Previous Message KÖPFERL Robert 2005-06-08 10:30:10 Experience with splitting a Table transparently