Re: another simple SQL question

Поиск
Список
Период
Сортировка
От manchicken
Тема Re: another simple SQL question
Дата
Msg-id 200706251210.37707.manchicken@notsosoft.net
обсуждение исходный текст
Ответ на another simple SQL question  (Joshua <joshua@joshuaneil.com>)
Список pgsql-sql
On Monday 25 June 2007 10:28:40 Joshua wrote:
> Ok here is another simple question from a novice....
>
> Here is what my table looks like
>
> firstname         lastname         fullname
> ----------       ----------       -----------
>                                               smith, john
>                                               green, susan
>                                               white, jeff
>
>
> How can I break the fullname field into firstname lastname fields so it
> looks like the following:
>
> firstname      lastname      fullname
> ---------     ---------       ---------
> john             smith             smith, john
> susan           green             green, susan
> jeff               white             white, jeff
>
> Please let me know. Sorry for such simple novice questions, I appreciate
> your support.
>
> THANKS!
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

You may want to consider breaking those out into individual columns.  It's 
much easier to put those together later on than it is to separate them out.

-- 
~ manchicken <><
(A)bort, (R)etry, (I)nfluence with large hammer.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


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

Предыдущее
От: manchicken
Дата:
Сообщение: Re: simple SQL question
Следующее
От: Joshua
Дата:
Сообщение: yet another simple SQL question