binding a variable to NULL in perl-DBD

Поиск
Список
Период
Сортировка
От Max Pyziur
Тема binding a variable to NULL in perl-DBD
Дата
Msg-id alpine.LRH.2.03.1308211655440.1058@brama.com
обсуждение исходный текст
Ответы Re: binding a variable to NULL in perl-DBD
Список pgsql-interfaces
Greetings,

I'm trying to determine how to pass "NULL" to a variable, specifically in 
the conditional section of a SQL statement:

SELECT moo
FROM foo aa
WHERE field1 = ?
AND field2 = ?

Sometimes at the command line, when running the perl-DBD script, I would 
like the select statement to reflect:

SELECT moo
FROM foo aa
WHERE field1 = 'goo'
AND field2 IS NULL

Much thanks in advance,

Max Pyziur
pyz@brama.com




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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Issue in Postgre Driver Installation
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Re: binding a variable to NULL in perl-DBD