SQLite3中时间戳类型的提取
SQLite3似乎不支持时间戳类型()的提取函数。比如,SQLite3中时间戳类型的提取,sqlite,Sqlite,SQLite3似乎不支持时间戳类型()的提取函数。比如, select extract(year from l_shipdate) as l_year from ... 给出以下错误; 错误:靠近“from”:语法错误 我想知道在SQLite3中是否有其他方法可以做到这一点(或者通过重写SQL查询) 提前感谢,试试这个 select strftime('%Y', l_shipdate) as l_year from...
select
extract(year from l_shipdate) as l_year
from
...
给出以下错误;
错误:靠近“from”:语法错误
我想知道在SQLite3中是否有其他方法可以做到这一点(或者通过重写SQL查询)
提前感谢,试试这个
select strftime('%Y', l_shipdate) as l_year from...