Inserting values into numeric fields

Поиск
Список
Период
Сортировка
От Eric Carpenter
Тема Inserting values into numeric fields
Дата
Msg-id NHEMKPHJPKCCFEHFMEJIKECKCEAA.postgresql@slacker.to
обсуждение исходный текст
Ответ на Problem With A Rule  (<cnliou@eurosport.com>)
Ответы Re: Inserting values into numeric fields  (Jason Earl <jason.earl@simplot.com>)
Список pgsql-sql
Greetings all,

I'm trying to insert values into a numeric field which may be optional. I'm
using perl's DBI and bind parameters to do this. However, psotgresql
complains that '' is not a numeric, since the DBI quotes everything before
inserting.. I've tried inserting NULL as well, but that gets quoted and
rejected as well.

Is there any way to do this without hard coding "NULL" into the prepared
statement handle?

Thanks!
Eric Carpenter




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

Предыдущее
От: "Richard Ellerbrock"
Дата:
Сообщение: Re: REPOST: Trouble with SQL conversion
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Transactional vs. Read-only (Retrieval) database