03 2019 档案

摘要:js正则表达式 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$ 只能输入数字:"^[0-9]*$"。 只能输入n位的数字:"^\d{n}$"。 只能输入至少n位的数字:"^\d{n,}$"。 只能输入m~n位的数字:。"^\d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9... 阅读全文
posted @ 2019-03-08 22:10 cclon 阅读(161) 评论(0) 推荐(0) 编辑
摘要:update table_name1 aset a.name= (select b.name from table_name2 b where a.oid= b.id)where exists (select 1 from table_name2 c where a.oid= c.id); 阅读全文
posted @ 2019-03-08 21:58 cclon 阅读(364) 评论(0) 推荐(0) 编辑
摘要:1、查询是否锁表 show OPEN TABLES where In_use > 0; 2、查询进程 show processlist 查询到相对应的进程 然后 kill id 补充: 查看正在锁的事务 SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS; 查 阅读全文
posted @ 2019-03-08 21:54 cclon 阅读(53345) 评论(0) 推荐(1) 编辑
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Console 阅读全文
posted @ 2019-03-08 21:34 cclon 阅读(29141) 评论(1) 推荐(0) 编辑
摘要:var input=new input(); var personList= new List(); //一个查询集合 var Total = personList.Count(s => s.AcceptStatus == input.AcceptStatus); //总记录数 //分页 var pagerList = personList.Where(s => s.AcceptSta... 阅读全文
posted @ 2019-03-07 18:08 cclon 阅读(887) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示