select trunc(start_time) from table
select to_date(to_char(sysdate,'yyyy-mm-dd'),'yyyy-mm-dd') from dual ; 这样也可以,看你最后需要什么类型的,日期还是字符型,上面条用to_date又转换了一次,如果只需要字符型,去掉to_date即可
select to_date(to_char(start_time,'yyyy-mm-dd'),'yyyy-mm-dd') from table
select to_date(substr(start_time,1,10),'yyyy-mm-dd') from table
17,377
社区成员
95,128
社区内容
加载中
试试用AI创作助手写篇文章吧