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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -