摘要: SQLite3日期与时间,常见函数 import sqlite3 #con = sqlite3.connect('example.db') con = sqlite3.connect(":memory:") c = con.cursor() # Create table c.execute('''C 阅读全文
posted @ 2016-02-22 01:41 罗兵 阅读(8126) 评论(0) 推荐(0) 编辑
摘要: 一、sqlite3日期数据类型,默认用datetime解析(根据stackflow) 使用时注意三点: 1. 创建表时,字段 DT 的类型为 date 2. 插入数据时,DT字段直接为 str 类型 3. DT字段的str ,年月日必须为 xxxx-xx-xx 格式,如 2016-01-01,不能是 阅读全文
posted @ 2016-02-22 00:56 罗兵 阅读(21475) 评论(0) 推荐(1) 编辑
摘要: 连接 子查询 阅读全文
posted @ 2016-02-22 00:13 罗兵 阅读(318) 评论(0) 推荐(0) 编辑