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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Empty Output? How Do I Determine the Character?
Дата
Msg-id 1771.1060383804@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Empty Output? How Do I Determine the Character?  (Hunter Hillegas <lists@lastonepicked.com>)
Ответы Re: Empty Output? How Do I Determine the Character?  (Hunter Hillegas <lists@lastonepicked.com>)
Список 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 по дате отправления:

Предыдущее
От: Hunter Hillegas
Дата:
Сообщение: Empty Output? How Do I Determine the Character?
Следующее
От: Hunter Hillegas
Дата:
Сообщение: Re: Empty Output? How Do I Determine the Character?