Re: strange query results

Поиск
Список
Период
Сортировка
От Anand Raman
Тема Re: strange query results
Дата
Msg-id 20010217100932.A5058@india-today.com
обсуждение исходный текст
Ответ на Re: strange query results  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
HI tom
A few days back i had bugged this list about the seemingly impossible
select queries results..

##RECAP##
select distinct site_section as "distinct site sections" from
exhibit_distributions ;
distinct site sections
------------------------
ARCHIVED
ARTETC
CALENDAR
GALLERY
POSTCARD
(5 rows)


select site_section, count(*) from exhibit_distributions group by
site_section;
site_section | count
--------------+-------
    |   352
    |    45
    |     1
    |   166
    |     2

##RECAP##

On going thru the flat files which we used to uplaod the database we
noticed a few fields had '' characters to signify '.. This was creating
problems in some jdbc queries.

One changing them to single ' and reloading all the data, the problem
simply disappered..

Thanks for the help
Anand Raman
On Tue, Feb 13, 2001 at 10:20:53AM -0500, Tom Lane wrote:
>Anand Raman <araman@india-today.com> writes:
>> The table description is as follows
>
>Hmm ... nothing obviously funny here.  Is there anything unusual about
>the history of this table?  (For example, were site_section or any other
>columns added via ALTER TABLE, rather than being there all along?)
>
>            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to use postgres 7.0.3 with -F?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Are partial indicies supported?