Re: Inserting NULL into Integer column

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Inserting NULL into Integer column
Дата
Msg-id 1077137634.18564.418.camel@jester
обсуждение исходный текст
Ответ на Re: Inserting NULL into Integer column  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: Inserting NULL into Integer column  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-sql
> and then you can foreach across the input:
> 
> foreach($fields as $f){
>   if (!$_POST[$f]){
>     $_POST[$f]='DEFAULT';
>   } else {
>     $_POST[$f] = "'".$_POST[$f]."'";
>   }
> }

Default in quotes isn't going to work, and please tell me you escape
those things with pg_escape_string() at some point.



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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Inserting NULL into Integer column
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Inserting NULL into Integer column