sqlite数据库怎么把20120205转为日期格式2012-02-05
select substr('20210205',1,4)||'-'||substr('20210205',5,2)||'-'||substr('20210205',7,2)
strftime('%Y-%m-%d',时间字段)函数好像不能用,可以拆开再拼起来,substr(\'20120205\',1,4)||\'-\'||substr(\'20120205\',5,2)||\'-\'||substr(\'20120205\',7,2)