随笔分类 - 数据库
摘要:时间戳转日期:SELECT datetime(1443148382, 'unixepoch', 'localtime'); 结果是:2015-09-25 10:33:02 日期转时间戳:SELECT strftime('%s','now'); 结果是当前时间转为时...
阅读全文
摘要:C# codepublic void AddIMG_ENTRY(img_entry model) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into...
阅读全文
摘要:在c#中执行sql语句时传递参数的小经验1、直接写入法: 例如: int Id =1; string Name="lui"; cmd.CommandText="insert into TUserLogin values("+Id+",'"+Name+"')"; 因为Id是数值,所以在传递的时候只需要...
阅读全文
摘要:SQLite介绍SQLite is a software library that implements aself-contained,serverless,zero-configuration,transactionalSQL database engine.SQLite是一个开源、免费的小型R...
阅读全文
摘要:.NetSQLite数据库驱动以及System.Data.SQLite.dll下载最新地址:http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wikiSQLite管理工具下载地址:http://www.cr173.com...
阅读全文

浙公网安备 33010602011771号