Is there a reason someone would use a ^ (caret) in a sql statement? (Microsoft Acccess)
Is there a reason someone would use a ^ (caret) in a sql statement? (Microsoft Acccess)
What does the query look like? The first thing that comes to mind is a bitwise operator.
SELECT * FROM Table WHERE RecordID ^ -1;
When I run this query in Access it returns all the rows in table.
I can't find anything that talks about that exact syntax but ^ as a wildcard means Not In (see here) and as a comparison operator ^= means Not Equals (see here). Those examples are as close as I can find to what you're seeing and I'd guess that in means Not Equals in your case - which would be consistent with the behaviour you're getting.
As for why someone would choose to use an obscure piece of syntax that nobody else has ever come across without commenting their reason for doing so, my guess would be that they were a small minded idiot who wanted to feel important about themself... just sayin'
![]()
When one of my minions says, "Hey, he's just one guy, what can he do?" I say "This"... and shoot them.
The problem with putting your lair in a volcano is keeping your robot army from melting.
I know that the human being and the fish can coexist peacefully - George Bush
Seems to be related to this post:
http://www.vbforums.com/showthread.p...L-Statement-do