Cursor need it? - Mailing list pgsql-sql

From Lucas Hernndez
Subject Cursor need it?
Date
Msg-id 42A7044B.4080604@gmail.com
Whole thread Raw
List 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



pgsql-sql by date:

Previous
From: KÖPFERL Robert
Date:
Subject: Experience with splitting a Table transparently
Next
From: Bruno Wolff III
Date:
Subject: Re: How do write a query...