代码改变世界

阅读排行榜

SQL SERVER - set statistics time on的理解

2016-10-26 15:05 by newbirth, 744 阅读, 收藏,
摘要: 一、set statistics time on的作用 显示分析、编译和执行各语句所需的毫秒数。 二、语法 SET STATISTICS TIME { ON | OFF } 注释 1、当 SET STATISTICS TIME 为 ON 时,显示语句的时间统计。一旦执行了上述命令,在整个会话期间,时 阅读全文

c# 文件日志处理 需要log4net配置

2016-09-14 09:44 by newbirth, 743 阅读, 收藏,
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace HuaTong.General.Utility { /// /// 文件日志处理 需要log4net配置 /// p... 阅读全文

c# 数据库批量插入数据SqlBulkCopy 示例

2016-12-06 17:35 by newbirth, 734 阅读, 收藏,
摘要: 注意:DataTable需要设置tableName,需要跟要插入的表名字一致 阅读全文

c# 字符串验证(邮箱、电话、数字、ip、身份证等)

2016-09-14 09:52 by newbirth, 686 阅读, 收藏,
摘要: using System; using System.Text.RegularExpressions; namespace HuaTong.General.Utility { /// /// 字符串验证 /// public static class StringValidate { private static Regex RegN... 阅读全文

给SqlParameter参数指定或不指定:@变量标识符的区别是什么?

2016-05-16 17:26 by newbirth, 686 阅读, 收藏,
摘要: 对于sql语句中一个@的参数@au_id,在sqlParameter中,可以用@au_id,也可以用au_id。要是bt点的,用两个@,你就不能随便省略@了。对于sql语句 : select * from authors where au_id=@@au_id在SqlParameter中,也只能用@ 阅读全文
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页