Re: PREPARE -> EXEC Problem

Поиск
Список
Период
Сортировка
От Chris
Тема Re: PREPARE -> EXEC Problem
Дата
Msg-id 496EBE50.5010109@gmail.com
обсуждение исходный текст
Ответ на PREPARE -> EXEC Problem  ("F." <dev001@pas-world.com>)
Список pgsql-php
F. wrote:
> Hello,
> I'm trying to execute a query with a DEFAULT value for primary key value
> but do not work.
>     pdo->prepare("INSERT INTO "Table" ("id","colum") VALUES(?,?)");
>     $arr=('DEFAULT','helloworld');
> Result of PDO is "not valid value for integer".
> Anyone know, How assign DEFAULT value in pdo->exec($arr)?

I would have guessed there'd be a constant defined for it
(http://au2.php.net/manual/en/pdo.constants.php) but can't see anything.

Can you not include the column in the query? then the db will
automatically use the default value.

--
Postgresql & php tutorials
http://www.designmagick.com/


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

Предыдущее
От: "F."
Дата:
Сообщение: PREPARE -> EXEC Problem
Следующее
От: "F."
Дата:
Сообщение: Re: PREPARE -> EXECUTE Problem