摘要: SQlite本身没有top功能,无法向TSQL一样下Select top 100 * from tb_table,但SQLite提供了一个Limit关键字用来取得相应行数的资料 具体语法实例:Select * from tb_table order by tb_ser limit 5 offset 阅读全文
posted @ 2018-05-23 18:18 Vanish. 阅读(992) 评论(0) 推荐(0) 编辑
摘要: 使用如下语句即可 this.textBoxLog.Focus();//获取焦点 this.textBoxLog.Select(this.textBoxLog.TextLength,0);//光标定位到文本最后 this.textBoxLog.ScrollToCaret();//滚动到光标处 阅读全文
posted @ 2018-05-03 18:42 Vanish. 阅读(8964) 评论(0) 推荐(0) 编辑
摘要: Newtonsoft.Json,是.Net中开源的Json序列化和反序列化工具,官方地址:http://www.newtonsoft.com/json。 功能比较多,效率比较高,官方给出对比数据 50% faster than DataContractJsonSerializer, and 250% 阅读全文
posted @ 2018-05-02 14:46 Vanish. 阅读(17478) 评论(0) 推荐(1) 编辑
摘要: --1:下面这种是SQL Server中比较简单的查询SQL语句执行时间方法,通过查询前的时间和查询后的时间差来计算的:declare @begin_date datetimedeclare @end_date datetimeselect @begin_date = getdate()select... 阅读全文
posted @ 2015-05-29 14:32 Vanish. 阅读(357) 评论(0) 推荐(0) 编辑
摘要: C#类常用技巧//今天DateTime.Now.Date.ToShortDateString();//昨天,也就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateString();//明天,同理,加一DateTime.Now.AddDays(1).ToShort... 阅读全文
posted @ 2015-04-27 16:59 Vanish. 阅读(3090) 评论(0) 推荐(2) 编辑
摘要: private void CheckIdentifyingCode() { Random r = new Random(); string str = ""; for (int i = 0; i < 5; i++) ... 阅读全文
posted @ 2015-04-27 16:58 Vanish. 阅读(824) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.Configuration;using System.Reflection; namespace Process 阅读全文
posted @ 2015-04-27 16:57 Vanish. 阅读(624) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices;using System.Text;namespace connectCMCC.Utils{ /// /// INI文件操作辅助类 /// public class... 阅读全文
posted @ 2015-04-27 16:56 Vanish. 阅读(676) 评论(0) 推荐(0) 编辑
摘要: rivate void btnClear_Click(object sender, EventArgs e){ ClearCntrValue(this.pnlContent);} 复制代码/// /// 清除容器里面某些控件的值 /// /// ... 阅读全文
posted @ 2015-04-27 16:55 Vanish. 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: --1:下面这种是SQL Server中比较简单的查询SQL语句执行时间方法,通过查询前的时间和查询后的时间差来计算的:declare @begin_date datetimedeclare @end_date datetimeselect @begin_date = getdate()select... 阅读全文
posted @ 2015-04-27 16:54 Vanish. 阅读(531) 评论(0) 推荐(0) 编辑