converting timestamp to date in java

后端 未结 6 1069
既然无缘
既然无缘 2020-12-21 08:14

This is my database: \"enter

Here I have to check the query current date+status=Q info

6条回答
  •  执笔经年
    2020-12-21 09:08

    You can achieve the same using mysql functions. Hope the following query gives you the desired output.

    select * 
    from orders
    where status='Q' AND 
          date_format(from_unixtime(date),'%Y-%m-%d') = current_date;
    

提交回复
热议问题