isnull() function in pgAdmin3

Поиск
Список
Период
Сортировка
От dudedoe01
Тема isnull() function in pgAdmin3
Дата
Msg-id 1474995871397-5923122.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: isnull() function in pgAdmin3  (Igor Neyman <ineyman@perceptron.com>)
Re: isnull() function in pgAdmin3  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: isnull() function in pgAdmin3  (Kevin Grittner <kgrittn@gmail.com>)
Re: isnull() function in pgAdmin3  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
Hi,

I am trying to emulate the isnull() function used in MySQL into postreSQL. I
have tried different ways such is null but it's not producing the results
desired. I am doing a data migration from MySQL into postgreSQL and need
help with the isnull() in pgAdmin3.

Any assistance provided would be greatly appreciated.

Thanks,

In MySQL:

(case
            when
                ((`s`.`Funding_Date` = '')
                    and (isnull(`s`.`Actual_Close_Date`)
                    or (`s`.`Actual_Close_Date` = '')))
            then
                'RPG_INV'
            when
                ((isnull(`s`.`Funding_Date`)
                    or (`s`.`Funding_Date` <> ''))
                    and ((`s`.`Actual_Close_Date` = '')
                    or isnull(`s`.`Actual_Close_Date`)))
            then
                'Builder_Inventory'
            else 'Owner_Inventory'
        end) AS `Lot_Status`,



--
View this message in context: http://postgresql.nabble.com/isnull-function-in-pgAdmin3-tp5923122.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: Israel Brewster
Дата:
Сообщение: Re: Determining server load
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Determining server load