...

Поиск
Список
Период
Сортировка
От simonw@cornfield.org.uk
Тема ...
Дата
Msg-id 20040623093321.5DCD1D1B170@svr1.postgresql.org
обсуждение исходный текст
Ответы Re:  (Franco Bruno Borghesi <franco@akyasociados.com.ar>)
Список pgsql-general
Subject: Coalesce, isEmpty and nvl

Message-Id: <E1Bd43P-000535-00@gaul.cornfield.org.uk>
From: simonw@cornfield.org.uk
Date: Wed, 23 Jun 2004 10:28:27 +0100


Hi

I have an application that I am porting from MySQL to Postgres, and have hit a
problem with coalesce.

I assumed that coalesce() works like nvl() and ifnull and will return the 2nd
argument if the first is NULL or Empty String, just like Orcale/SQLServer with nvl()
or MySQL with ifnull().

Is there a simple way to implement this function other creating an nvl() function
with pg/PLSQL.

Finally, how efficient are pg/PLSQL functions at runtime? Are they re-parsed with
every call, or are parsed once only?

Many thanks

Simon

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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

Предыдущее
От: "Mark Spruill"
Дата:
Сообщение: Restore a dump with new line characters
Следующее
От: Calvin Mitcham
Дата:
Сообщение: Re: pgHoster.com woes and looking for a new host