随笔分类 - Sqlite
摘要:create table bike (id varchar(6) primary key, password char(6));
阅读全文
摘要:数据表说明 RowId作为主键, 用projectid,sensorid,filename三个字段作为记录是否重复的判断 (projectid和sensorid,可以定位到id,所以也可以用id和filename作为记录是否重复的判断) 1.筛选全部数据 显示有1854条数据 2.分组筛选,过滤掉重
阅读全文
摘要:https://blog.jooq.org/2014/11/11/have-you-ever-wondered-about-the-difference-between-not-null-and-default/ When writing DDL in SQL, you can specify a
阅读全文
摘要:http://stackoverflow.com/questions/8519936/sqlite-autoincrement-primary-key-questions I'm not sure whether you're actually using SQLite according to t
阅读全文
摘要:首先要安装好,所需要的类库,通过NuGet来处理 http://stackoverflow.com/questions/28507904/vs-2015-sqlite-data-provider 安装这个http://system.data.sqlite.org/downloads 下载最新版 sq
阅读全文
摘要:https://www.nuget.org/packages/System.Data.SQLite/ 直接在Package Manager Console中执行命令,会自动安装依赖项的 Install-Package System.Data.SQLite 安装完成之后,一共安装4个dll Attem
阅读全文
摘要:http://www.sqlite.org/datatype3.html http://stackoverflow.com/questions/7337882/what-is-the-difference-between-sqlite-integer-data-types-like-int-inte
阅读全文
摘要:http://stackoverflow.com/questions/531035/how-to-do-if-not-exists-in-sqlite How about this? (Untested as I don't have SQLite... however this link is q
阅读全文
摘要:http://stackoverflow.com/questions/1274432/sqlite-parameters-not-allowing-tablename-as-parameterGenerally one cannot use SQL parameters/placeholders f...
阅读全文
摘要:http://www.codeproject.com/Articles/630277/Generic-Data-Access-Layer-GDA-Part-Ihttp://www.codeproject.com/Articles/681565/Self-Synchronized-Data-Acces...
阅读全文
摘要:select [CollectDateTime] as '时间',[Channel_34] as '通道34',[Channel_54] as '通道54' from [DataTable] where [CollectDateTime] '2014-11-19 17:15:34' LIMIT 10...
阅读全文
摘要:使用sqlite进行时间的插入的时候,使用了 DateTime.ToString("s") //s: 2008-06-15T21:15:07 插入到数据库之后,发现时间被加了8个小时 找了半天资料,才找到原因 This profile defines two ways of handling tim
阅读全文
摘要:插入时间的sql语句insert into[DataTable]([CollectDateTime],[Channel_1],[Channel_2],[Channel_3],[Channel_4],[Channel_5],[Channel_6],[Channel_7],[Channel_8],[Ch...
阅读全文
摘要:Getting started with SQLite in C#http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/ C#与SQLite的操作介绍 下载http://www.cn...
阅读全文
摘要:1.简直是作死帝呀。不需要修改dll的名字,否则就坐等悲剧吧如果项目中有x86和x64的dll,可以建两个不同的文件夹分别存放,但是千万不要修改掉默认的dll的名字System.Data.SQLite.dll2.这个dll是区分x86和x64平台的,务必设置项目的目标平台对应到正确的dll3.需要修...
阅读全文
摘要:唉,需要不停的踩坑呀commandText = commandText + string.Format("where [CollectDateTime] '{1}'", end.ToString("yyyy-MM-dd HH:mm:ss"), start.ToString("yyyy-MM-dd H...
阅读全文
摘要:简直被坑死了,bool字段更新,只能用0或1,才是正确的更新。否则select出来的字段是错的本来用true和false更新的,更新之后,使用sqliteexpert查看,更新结果是对的。但是发现select出错select [ChannelID],[ISOpen],[Bridge],[Expres...
阅读全文
摘要:在这个页面可以下载安装不同版本的http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wikix86的版本可以在64位机器上运行,但是x64的不可以在32位机器上运行Mixed mode assembly的相关资料http:...
阅读全文
摘要:微软自带的DbProviderFactory https://msdn.microsoft.com/en-us/library/system.data.common.dbproviderfactory(v=vs.110).aspx SQLite自带的SQLiteFactory 从DbProvider
阅读全文
摘要:帮助文档 http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki 历史版本https://system.data.sqlite.org/index.html/doc/trunk/www/news.wiki 源代码下载【简直无
阅读全文