I have a temp table and want to check in a where clause wether a certain id/string is contained in the temp table.
Select...
WHERE MyId IN MyTempTable
I get a general error in MS SQL Management studio.
is the “In” operator not suited for temp tables?
Your syntax is wrong:
I don’t much like the IN operator, so I prefer this:
But it’s largely a matter of taste.