agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: Max Pyziur <pyz@brama.com>
To: pgsql-interfaces@postgresql.org
Subject: binding a variable to NULL in perl-DBD
Date: Wed, 21 Aug 2013 17:06:26 -0400 (EDT)
Message-ID: <alpine.LRH.2.03.1308211655440.1058@brama.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces
view thread (3+ messages) latest in thread
Message-ID: <alpine.LRH.2.03.1308211655440.1058@brama.com>
Permalink: ../alpine.LRH.2.03.1308211655440.1058@brama.com/
Also on: postgresql.org/message-id/alpine.LRH.2.03.1308211655440.1058@brama.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: pyz@brama.com
Subject: Re: binding a variable to NULL in perl-DBD
In-Reply-To: <alpine.LRH.2.03.1308211655440.1058@brama.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox