I just saw the weirdest thing ever in some very old SQL code we have.
There is a multiply equals operator in a where clause. Does it have a special meaning? It selects the appropriate columns, but o.name
is NULL
.
I am sure it is a typo, but I just want to confirm.
select c.name,
c.status,
o.name
from syscolumns c,
sysobjects o
where c.id = object_id('dbo.MyTable')
and c.cdefault *= o.id
order by colid asc