Re: Empty Output? How Do I Determine the Character?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hunter Hillegas <lists(at)lastonepicked(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Empty Output? How Do I Determine the Character?
Date: 2003-08-08 23:03:24
Message-ID: 1771.1060383804@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hunter Hillegas <lists(at)lastonepicked(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hunter Hillegas 2003-08-08 23:06:57 Re: Empty Output? How Do I Determine the Character?
Previous Message Hunter Hillegas 2003-08-08 22:47:42 Empty Output? How Do I Determine the Character?