Re: String Concatenation
| От | John Brookes | 
|---|---|
| Тема | Re: String Concatenation | 
| Дата | |
| Msg-id | 007d01c470d5$13f7ac00$6501a8c0@sccorp.com обсуждение исходный текст | 
| Ответ на | String Concatenation ("Luiz K. Matsumura" <luiz@planit.com.br>) | 
| Список | pgsql-novice | 
----- Original Message -----From: Luiz K. MatsumuraSent: Friday, July 23, 2004 9:00 AMSubject: [NOVICE] String ConcatenationI want to concatenate 2 fields :tpmov char(4) | dsmov char(10)---------------+----------------AB | SOMETHINGIf I do:SELECT tpmov || dsmov as History ...if the field tpmov has a fixed lenght of char(4) the resultexpected (I suppose) may beHistory--------------AB SOMETHINGBut Postgres returnsHistory------------ABSOMETHINGWhy this occurs ?How I can get the first result ( AB__SOMETHING ) ?If I do a select with the literal strings the result is as expected :SELECT 'AB ' || 'SOMETHING' AS History ;History--------------AB SOMETHINGMy reasoning is wrong or this is a bug ?
В списке pgsql-novice по дате отправления: