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

Re: SELECT COUNT(*)... returns 0 ROWS

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: "PostgreSQL" <postgres(at)coopelesca(dot)co(dot)cr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: SELECT COUNT(*)... returns 0 ROWS
Date: 2003-10-31 19:47:37
Message-ID: 20031031144737.0faca65f.threshar@torgo.978.org (view raw or flat)
Thread:
Lists: pgsql-admin
On Fri, 31 Oct 2003 13:33:09 -0600
"PostgreSQL" <postgres(at)coopelesca(dot)co(dot)cr> wrote:

> I have instaled Postgres 7.3.4 on RH 9,
> if I excecute:
> 
> select count(*) from cj_tranh;
>  count 
> -------
>      0
> (1 row)
> 
> Why the result us CERO? the table have 1.400.000 rows!
> What is wrong? Anybody help please.
> 

1. did you remember to load data?
2. did someone accidentally delete the data?
3. are you connected to the correct db (I've panic'd before but realized
I was on dev, not production!)?
4. sure that is the right table?

-- 
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2003-10-31 21:13:17
Subject: Re: ? in explain query
Previous:From: Tom LaneDate: 2003-10-31 19:45:57
Subject: Re: dumping tables from badly damaged db

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