数据库time录的是yyyy/mm/dd格式,怎么把yyyy-mm-dd转为yyyy/mm/dd再查询select * from table where time (这里该怎么写)
select to_date(t.time,'yyyy/MM/dd') as time from table t
select
to_date(t.time
,
'yyyy/MM/dd'
) as time
from
table t
right
@小刺猬001: O(∩_∩)O
select to_char(w.time,'yyyy/MM/dd') as time from table w
wrong
@小刺猬001: ...只是转化下格式而已、又不是string[/擦汗]。又没大差
楼上正解