EXTRACT for TIMESTAMP types in SQLite3
Posted
by umuthorax
on Stack Overflow
See other posts from Stack Overflow
or by umuthorax
Published on 2010-06-13T19:59:56Z
Indexed on
2010/06/13
20:02 UTC
Read the original article
Hit count: 257
Hi,
It seems extract function is not supported by SQLite3 for timestamp types (ref). For example;
select
extract(year from l_shipdate) as l_year
from
...
gives the following error; Error: near "from": syntax error
I wonder whether there is an alternative way to do this in SQLite3 (or through rewriting the SQL query).
Thanks in advance,
© Stack Overflow or respective owner