Re: Inserting Null Value or String Value

Поиск
Список
Период
Сортировка
От Roland Roberts
Тема Re: Inserting Null Value or String Value
Дата
Msg-id m265wmujiw.fsf@kuiper.rlent.pnet
обсуждение исходный текст
Ответ на Re: Inserting Null Value or String Value  (Keary Suska <hierophant@pcisys.net>)
Список pgsql-php
>>>>> "Keary" == Keary Suska <hierophant@pcisys.net> writes:

    Keary> If I surround the date with single quotes it should be
    Keary> fine, but I can't do that when I want to insert a null
    Keary> value.  I know that I can do an "IF <use quotes> ELSE
    Keary> <don't use quotes>" in the SQL string, by I am entering
    Keary> many values and this would really get messy. I was hoping
    Keary> that there was a better solution. Thanks for any help.

Why is this too difficult?  You *are* doing some sort of input
validation before you send the data to posgres aren't you?

roland
--
               PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD                             RL Enterprises
roland@rlenter.com                     76-15 113th Street, Apt 3B
roland@astrofoto.org                       Forest Hills, NY 11375

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

Предыдущее
От: Keary Suska
Дата:
Сообщение: Re: Inserting Null Value or String Value
Следующее
От: Eckhard Hoeffner
Дата:
Сообщение: Re: Inserting Null Value or String Value