Hi all,
well above will return me nothing cuz "a2=null" have to be "a2 is null".
This is an issue with parameterized statements in general. [...]
Is that really a problem? I remember that earlier I always used the test
"where xy=null" without any problems in MySQL. Then, we started to port our
application to work on MySQL _and_ Oracle and on that occasion, I had to
change the statement into "where xy is null", because Oracle couldn't parse
and work with the first alternative.
Today, I always use the "is null" version. And as I use PreparedStatements
only for exchanging BLOBs, _that_ very problem never occured for me.