existing column of DATE data is date plus time, for example: 2018-01-01 15:00:30
now you want to calculate the date in the DATE column to the corresponding Saturday and enter it into the WEEKEND column in order. As long as the date is not time, how to write the SQL statement?
how do I change the following statement or how should I write it?
select subdate (curdate (), date_format (curdate (),"% w")-6)