Looks are important

Поиск
Список
Период
Сортировка
От George Weaver
Тема Looks are important
Дата
Msg-id 00ac01c3a96a$a165b290$6400a8c0@Dell4500
обсуждение исходный текст
Ответы Re: Looks are important
Re: Looks are important
Список pgsql-sql
Hi Everyone,
 
I am trying to concatenate two fields through a query:
 
SELECT RPAD(no,30,' ') || tableb.kind FROM tablea 
WHERE tablea.kind = tableb.kind
 
The result gives (for example):
 
4595448                       Green
5966                          Yellow
106-60033                     Green
15-94-387                     Red
217-991173                    Blue
 
What I would like to have is better alignment:
 
4595448                     Green
5966                          Yellow
106-60033                  Green
15-94-387                   Red
217-991173                 Blue
 
Is there some kind of encoding or other string options that will result in better alignment than what I've tried with Rpad?
 
Thanks in advance,
George
 
 
 
 

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: transaction processing after error in statement
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Looks are important