sqlite时间的使用方法小记

前端之家收集整理的这篇文章主要介绍了sqlite时间的使用方法小记前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_404_64@

time TimeStamp NOT NULL DEFAULT (datetime('now','localtime'));



string sql5 ="CREATE TABLE roundsdata(type INTEGER,round INTEGER,rightnum INTEGER,time not null default (datetime('now','localtime')))";
sqliteUtil::createTable(sql5,"roundsdata");

插入北京时间的方法

string sql2 ="CREATE TABLE game_wrongs( type INTEGER,questionid INTEGER primary key,time not null default current_timestamp)";
sqliteUtil::createTable(sql2,"game_wrongs");


插入显示格林尼治时间的方法

原文链接:https://www.f2er.com/sqlite/200367.html

猜你在找的Sqlite相关文章