Re: Merging two columns into one
От
darcy@druid.net (D'Arcy J.M. Cain)
Тема
Re: Merging two columns into one
Дата
Msg-id
m135Rov-000AY5C@druid.net
Ответ на
Re: Merging two columns into one (Oliver Elphick)
Список
Дерево обсуждения
Re: Merging two columns into one "Gary MacMinn" <G.MacMinn@nca.gov.au>
Thus spake Oliver Elphick > SELECT col1, col2,..., areacode || phone as phone, colx, coly,... Although you may want this for easier reading. SELECT col1, col2,..., (areacode || ' ') || phone as phone, colx, coly,... Also, I would do "as fullphone" instead so that I don't get confused between the field name and my generated string but that's mainly a style issue. -- D'Arcy J.M. Cain | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
В списке pgsql-sql по дате отправления