boolean - How to query mysql without a table? -
i wonder if can simple boolean check mysql. mean can like
select date(`2013-03-25 01:22:26`) = curdate()
to return true or false?
or php equivalent of case work, want learn this. using mysql such goal unnecessary ?
just remove where
clause , use single quote around date.
select date('2013-03-25 01:22:26') = curdate()
Comments
Post a Comment