随笔分类 - 数据库
摘要:NuGet 中添加 sqlite-net-pclSQLitePCLRaw.bundle_green 数据类设置 [Table("TestProjectData")] public class TestProjectModel { [PrimaryKey, AutoIncrement] [Column
阅读全文
摘要:1. NuGet 中安装下面两个组件 sqlite-net-pcl SQLitePCLRaw.bundle_green 2. 创建表格 // 创建表结构[Table("Valuation")] public class Valuation { [PrimaryKey, AutoIncrement]
阅读全文
摘要:分组,个数 select frameIDName,count(*) from tb_chargeparsing GROUP BY frameIDName 时间格式转化 sqlserver string 转 datetime SELECT convert(datetime, '2016-10-23 2
阅读全文
摘要:sqlserver远程连接 Data Source=222.333.44.55;Initial Catalog=tableName;Persist Security Info=True;User ID=test;Password=123456; sqlserver本地连接 Data Source=l
阅读全文
摘要:下载SQLiteStudio https://sqlitestudio.pl/ 先创建数据库 新建个文件后缀改为.db(改成其他的也可以如: .sj) 打开SQLiteStudio,添加数据库 点击连接 创建表格 写入表名 添加字段 添加 int 型主键 ID(注:选择主键后会自增) 创建表格 c#
阅读全文