I am building some prepared statements that use parametrized values. As an example:
SELECT * FROM \"Foo\" WHERE \"Bar\"=@param
Sometimes
What specific database are you using?
If you're doing searches based on null (or not null), using IS is the way to go. I cannot provide a technical reason but I use this syntax all the time.
SELECT * FROM Table WHERE Field IS NULL SELECT * FROM Table WHERE Field IS NOT NULL