in reply to Re^2: DBI, place holders and CGI forms
in thread DBI, place holders and CGI forms

Something functionally equivalent, yes. DBD::Oracle will map undef to an Oracle null. I would probably build a hash with expected field/value pairs (protection against an untrusted client), and pass that into my query routine. Any unspecified parameter would therefore be automatically mapped to undef.

Replies are listed 'Best First'.
Re^4: DBI, place holders and CGI forms
by mje (Curate) on Jun 02, 2011 at 16:00 UTC

    but beware you cannot do "where mycol = ?" and then pass a value of undef (mapping to NULL) and expect it to work.