随笔分类 -  Sqlite

摘要:public class SQLiteHelper { #region 数据库的连接属性 private static SQLiteConnection scon; public static SQLiteConnection Connect { get { if (scon == null) { string con = "Data Source=e:\\logdb.db;Pooling=true;FailIfMissing=false"; scon = new SQLiteConnection(con); } else if (scon.State == Connect 阅读全文
posted @ 2011-09-05 10:07 用心玲听 阅读(567) 评论(0) 推荐(0)
摘要:首先,sqlite数据库在时间处理上和sqlserver还有oracle不同,下面根据自己做过的实例总结一下.创建了一个Log数据表:LogIDSourceIDOperatorIDLogTypeLogLevelLogTimeLogContent1aaa.aspx0212011-08-18 16:44:32.000aaaa2bbb.aspx1222011-08-18 16:38:32.000bbbb3ccc.aspx2332011-09-02cccc4ddd.aspx3142011-08-15dddd5eee.aspx4132011-08-18eee普通的sqlserver的查询语句如下:sel 阅读全文
posted @ 2011-09-02 15:03 用心玲听 阅读(1173) 评论(0) 推荐(0)