话不多说直接上图:
1.数据库table1
select date_format(t.time,'%Y-%m-%d') from test.table1 t
2.执行语句结果
剩下的使用可以查看w3school,地址如下
https://www.w3school.com.cn/sql/func_date_format.asp
话不多说直接上图:
1.数据库table1
select date_format(t.time,'%Y-%m-%d') from test.table1 t
2.执行语句结果
剩下的使用可以查看w3school,地址如下
https://www.w3school.com.cn/sql/func_date_format.asp