It's not really important, but just wondering why the Oracle SQL seems to be quote inconsistent? I mean why do they have...
NOT IN (?,?,?)
and
!= '?'
rather than
NOT EQ '?'
Just a thought
K
It's not really important, but just wondering why the Oracle SQL seems to be quote inconsistent? I mean why do they have...
NOT IN (?,?,?)
and
!= '?'
rather than
NOT EQ '?'
Just a thought
K
NOT IN ( ?, ? )
is ISO 9075 SQL standard syntax. I do wonder what symbols could possibly be used to denote "not in". That seems silly, since "mathematical" symbols such as !=
are almost self-documenting, and the "set" type symbols needed for "not in" aren't available on most keyboards, nor would they be familiar to most developers.
Note that neither !=
nor NOT EQ
are ISO-standard. The standard "not equals operator" is <>
, but as noted here, the !=
has some advantages.
In the code NOT IN (?,?,?)
the question marks appear to be positional parameters from a parameterized query, while the code != '?'
is a comparison to a string literal. If you had wanted it parameterized it would have been != ?
without the single quotes.