首页 > 代码库 > sqlite

sqlite

Round(X,Y) 将X进行小数位四舍五入取值 若省掉Y,将四舍五入为整数

Select  Round( K1,2) as K1 From tableName

 

对时间进行规范化输出

strftime(‘%Y-%m-%d %H:%M:%S‘,TimeCreate) as TimeCreate

 

插入或更新时

TimeCreate   --------   + ",‘" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff") + "‘"

sqlite