摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace listTst { class Program { stat... 阅读全文
posted @ 2019-07-23 16:31 cclon 阅读(2077) 评论(0) 推荐(0) 编辑
摘要: //(obj)对象string类型 null转空字符串和去前后空格 obj.ObjectNullToString<类名>(); 阅读全文
posted @ 2019-05-17 16:03 cclon 阅读(1813) 评论(0) 推荐(0) 编辑
摘要: 汉字长度与编码有关 MySql 5.0 以上的版本: 1、一个汉字占多少长度与编码有关: UTF-8:一个汉字 = 3个字节,英文是一个字节 GBK: 一个汉字 = 2个字节,英文是一个字节 2、varchar(n) 表示n个字符,无论汉字和英文,MySql都能存入 n 个字符,仅实际字节长度有所区 阅读全文
posted @ 2019-05-16 11:12 cclon 阅读(5305) 评论(0) 推荐(0) 编辑
摘要: //查看本机IP ipconfig 内网拼其他机子, 其他机子一定要关闭防火墙 ping 192.168.198.46 telnet 192.168.198.46 3000 拼端口 会跳转表示通了 ping www.baidu.com 阅读全文
posted @ 2019-04-16 18:15 cclon 阅读(360) 评论(0) 推荐(0) 编辑
摘要: MYSQL 生成UUID 即 guid 函数-- 带 - 的UUIDselect UUID() -- 去掉 - 的UUIDselect replace(uuid(),'-','') 一个表的数据插入另一个表中。 INSERT INTO 目标表 SELECT * FROM 来源表; INSERT IN 阅读全文
posted @ 2019-04-16 14:06 cclon 阅读(1545) 评论(0) 推荐(0) 编辑
摘要: 1 cmd 创建项目 找到指定目录 vue create test 或 vue ui (可视化创建)推荐 2 其他依赖项命令 打开项目执行 cnpm i (不可以需要,创建项目的时候已经安装这些依赖) 3 安装 iview 命令 cnpm i -S iview 最新版 cnpm i -D sass- 阅读全文
posted @ 2019-04-03 15:12 cclon 阅读(11164) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(160) 评论(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 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 1、查询是否锁表 show OPEN TABLES where In_use > 0; 2、查询进程 show processlist 查询到相对应的进程===然后 kill id 补充: 查看正在锁的事务 SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS; 查看等待锁的事务 SELECT * FROM INFORMATION_SCHEMA.IN... 阅读全文
posted @ 2019-03-08 21:54 cclon 阅读(53233) 评论(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 阅读(28836) 评论(1) 推荐(0) 编辑