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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

How to merge four videos on one screen with ffmpeg -

c - getting error: cannot take the address of an rvalue of type 'int' -