If I do something like this in SQL Server...
select *
from mytable
where 1=1
...does the 1=1
condition get optimised out, or is it actually evaluated for each row?
I'd also be interested in knowing how other DBMSes behave in this regard, particularly MySQL.