select 1 from mytable where mycol='foo'