SQLite时间插入查询

SQLite时间插入查询,sqlite,Sqlite,我想将时间值插入SQLite。我搜索了函数、修饰符、时间字符串,但没有达到目的。当我编写查询时,它不记录“.323”,只记录“08:25:01”。我想录制'08:25:01.323'。我的问题是: insert into table_name (column_name) values (time('08:25:01.323')) 我正在等待您的帮助。将时间存储为字符串,并仅在必要时解析它 sqlite> create table t (t text); sqlite> insert

我想将时间值插入SQLite。我搜索了函数、修饰符、时间字符串,但没有达到目的。当我编写查询时,它不记录“.323”,只记录“08:25:01”。我想录制'08:25:01.323'。我的问题是:

insert into table_name (column_name) values (time('08:25:01.323'))

我正在等待您的帮助。

将时间存储为字符串,并仅在必要时解析它

sqlite> create table t (t text);
sqlite> insert into t values ('08:25:01.323');
sqlite> select * from t;
08:25:01.323
sqlite> select t, time(t) from t;
08:25:01.323|08:25:01

据我所知,我将“08:25:01.323”记录为文本字段。最后使用select命令,我获得“08:25:01”作为时间字段。但是,我应该首先将'08:25:01.323'记录为时区,而不是文本。这可能吗?SQLite不关心类型。