摘要:
private int DateDiff(DateTime dateStart, DateTime dateEnd) { DateTime start = Convert.ToDateTime(dateStart.ToShortDateString()); DateTime end = Conver 阅读全文
posted @ 2019-04-04 17:57
zhangzhiping35
阅读(19689)
评论(0)
推荐(2)
摘要:
var today = '@DateTime.Now.ToString("yyyy-MM-dd HH:mm")'; Date.parse(today) 阅读全文
posted @ 2019-04-04 17:56
zhangzhiping35
阅读(930)
评论(0)
推荐(0)
摘要:
> 简单的例子 这个函数的功能是,在第二个参数中寻找第一个参数,并返回第一个参数所在的位置,不存在则返回0。其中,第二个参数是以“,”分隔的字符串。 -- 1 select find_in_set('1', '1,2,3,4,5,6'); -- 2 select find_in_set('2', ' 阅读全文
posted @ 2019-04-04 17:55
zhangzhiping35
阅读(214)
评论(0)
推荐(0)
摘要:
img{ border:none;max-width:458px; width:expression(this.width>458?"458px":this.width); /*max-height:720px; height:expression(this.height>720?"720px":t 阅读全文
posted @ 2019-04-04 17:54
zhangzhiping35
阅读(177)
评论(0)
推荐(0)
摘要:
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" /> 在网页的<head>中增加以上这句话,可 阅读全文
posted @ 2019-04-04 17:53
zhangzhiping35
阅读(280)
评论(0)
推荐(0)
摘要:
private static char[] constant = { '0','1','2','3','4','5','6','7','8','9', 'a','b','c','d','e','f','g','h','i','j 阅读全文
posted @ 2019-04-04 17:52
zhangzhiping35
阅读(1497)
评论(0)
推荐(0)
摘要:
查看被锁的表 1 2 select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' 1 2 阅读全文
posted @ 2019-04-04 17:52
zhangzhiping35
阅读(121)
评论(0)
推荐(0)
摘要:
zhangzhiping35 zhangzhiping35 C#隐情信息(银行账户,身份证号码,名字)中间部分特殊字符替换(*) C#隐私信息(银行账户,身份证号码,名字)中间部分特殊字符替换(*) 最近做到一个关于银行的一个功能模块,需要将隐私信息银行账号中间部分用*代替,于是写下了,如下代码: 阅读全文
posted @ 2019-04-04 17:51
zhangzhiping35
阅读(471)
评论(0)
推荐(0)
摘要:
zhangzhiping35 zhangzhiping35 c#检查SQL语法是否正确,不执行SQL语句 public static bool ValidateSQL(string sql) { bool bResult; using (SqlConnection conn = new SqlCon 阅读全文
posted @ 2019-04-04 17:51
zhangzhiping35
阅读(836)
评论(0)
推荐(0)
摘要:
顾名思义:表值函数返回的是表,而标量值函数可以返回基类型 一、表值函数 用户定义表值函数返回 table 数据类型。对于内联表值函数,没有函数主体;表是单个 SELECT 语句的结果集。 以下示例创建了一个内联表值函数。此函数的输入参数为客户(商店)ID,而返回 de>ProductIDde>、de 阅读全文
posted @ 2019-04-04 17:50
zhangzhiping35
阅读(279)
评论(0)
推荐(0)

浙公网安备 33010602011771号