摘要: 按照正常的SQL语句,创建一个数据表,并设置主键是这样的语句:CREATE TABLE [Sample] (EventId int PRIMARY KEY, EventDate timestamp, EventMessage varchar(255), EventType varchar(10))但使用这种办法,在SQLite中创建的的数据表,如果使用Insert语句插入记录,如下语句:INSERT INTO Sample VALUES(null, '2013-12-26', 'hello.txt', 'Remove')那么在实际添加的记录中,主 阅读全文
posted @ 2014-01-10 09:36 wusir 阅读(2850) 评论(0) 推荐(0) 编辑