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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -