Re: Empty Output? How Do I Determine the Character? - Mailing list pgsql-general

From Tom Lane
Subject Re: Empty Output? How Do I Determine the Character?
Date
Msg-id 1771.1060383804@sss.pgh.pa.us
Whole thread Raw
In response to Empty Output? How Do I Determine the Character?  (Hunter Hillegas <lists@lastonepicked.com>)
Responses Re: Empty Output? How Do I Determine the Character?
List pgsql-general
Hunter Hillegas <lists@lastonepicked.com> writes:
> I cannot determine what character is stored in a varchar...
> For instance:
> thedonnaholics=# select state from mailing_list where rec_num = 7;
>  state
> -------

> (1 row)

I'd say it's either NULL or between one and five space characters.
To find out, try something like

select '>' || state || '<' from mailing_list where rec_num = 7;

            regards, tom lane

pgsql-general by date:

Previous
From: Hunter Hillegas
Date:
Subject: Empty Output? How Do I Determine the Character?
Next
From: Hunter Hillegas
Date:
Subject: Re: Empty Output? How Do I Determine the Character?