Skip to content
Advertisement

Mysql query for getting today’s data in a sub-query #mysql

I have to get today’s data in MySQL query.

In this query, it shows the error message that we can select one column which is understandable as I have used (col1, col2(for date)) as col. but I need a solution to get this done. thanks

Advertisement

Answer

If you need today’s data only, You should use the condition at the last only –

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement