line CASE statemelnt in query a la Oracle

Поиск
Список
Период
Сортировка
От Dennis Gearon
Тема line CASE statemelnt in query a la Oracle
Дата
Msg-id 514018.57395.qm@web82102.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: line CASE statemelnt in query a la Oracle  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
I would like to have a query replace a NULL in  a field with a truncated value from one field based on a size passed
in?

Basically, I'd like to be able to generate a 'short title' for a record based on either the user's input for  a short
title,or a turncated 'normal title' at query time.  

Would this be very expensive processor timewise?

I might just feed the whole long title in and have the display properties of the browser truncate it.


Dennis Gearon

Signature Warning
----------------
EARTH has a Right To Life,
  otherwise we all die.

Read 'Hot, Flat, and Crowded'
Laugh at http://www.yert.com/film.php

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: postgresql cluster on SAN
Следующее
От: John R Pierce
Дата:
Сообщение: Re: line CASE statemelnt in query a la Oracle