摘要: -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; begin CREATE TABLE #T ( EVENTTYPE VAR 阅读全文
posted @ 2021-05-14 09:18 望着天的蜗牛 阅读(745) 评论(0) 推荐(0)
摘要: 1. 在自己电脑上生成key文件在命令行执行 ssh-keygen,生成私钥时叫你们输入密码可以不输 ,如果没有这个命令可以参考这个来做 https://www.onmsft.com/how-to/how-to-generate-an-ssh-key-in-windows-10 ,会在当前用户的目录 阅读全文
posted @ 2021-05-08 10:47 望着天的蜗牛 阅读(1068) 评论(0) 推荐(0)
摘要: 卸载服务 1. 停止服务 sudo service xxx stop 2. 卸载 sudo apt-get --purge remove xxx 3.清理残余 sudo apt-get autoremove sudo apt-get autoclean 4.删除相关目录 sudo rm /etc/x 阅读全文
posted @ 2021-05-03 20:15 望着天的蜗牛 阅读(88) 评论(0) 推荐(0)
摘要: 为啥单独写这个呢. 有个系统用了7年 好好的 没点问题.今天早上正在愉快搬砖中. 突然 邮件满天飞.说提交数据出问题了. 一看错误.主键重复. 我主键是自增的怎么重复呢 , 背景是主表为A表/从表为B 表 在A表产生一个自增值 然后作为主键插入到B表. 我直接 在数据库测试插入个人习惯 用 SCOP 阅读全文
posted @ 2021-03-30 11:59 望着天的蜗牛 阅读(827) 评论(1) 推荐(2)
摘要: SET DATEFIRST 1 --设周一为起始时间(系统默认为周日)仅作用于当前查询窗口 set transaction isolation level read uncommitted; --设置当前执行的查询 允许脏读 ( 就不用每个表后面加 nolock了) 清理 日志文件 DBCC SHR 阅读全文
posted @ 2021-03-18 09:39 望着天的蜗牛 阅读(56) 评论(0) 推荐(0)
摘要: 1. add docker to linux 执行 (官方脚本 安装) curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 或 (国内 daocloud 一键安装命令) curl -sSL https://get.da 阅读全文
posted @ 2021-02-05 15:56 望着天的蜗牛 阅读(229) 评论(0) 推荐(0)
摘要: 参考 : https://www.runoob.com/linux/linux-user-manage.html 添加用户 useradd 选项 用户名 参数说明: 选项: -c comment 指定一段注释性描述。 -d 目录 指定用户主目录,如果此目录不存在,则同时使用-m选项,可以创建主目录。 阅读全文
posted @ 2021-02-05 14:39 望着天的蜗牛 阅读(184) 评论(0) 推荐(0)
摘要: declare @spid int ;declare @ddlstring nvarchar(max);declare @dbname varchar(200);set @dbname='数据库名';declare tmpcur cursor for select distinct spid as 阅读全文
posted @ 2020-12-26 17:16 望着天的蜗牛 阅读(889) 评论(0) 推荐(0)
摘要: 看到网上很多人说用indexOf其实这个方法是有问题的 比如 有两列 AB和A 你要获取A列的索引你怎么获取 在DataColumn中有一个设置列索引的方法叫 SetOrdinal , 故而获取索引就可以获取这个值即 阅读全文
posted @ 2020-11-16 13:57 望着天的蜗牛 阅读(268) 评论(0) 推荐(0)
摘要: private void button1_Click(object sender, EventArgs e) { CloseExcelWorkbook("TestReport.xlsx"); } //put the following abbreviation to the "using" bloc 阅读全文
posted @ 2020-11-13 11:30 望着天的蜗牛 阅读(1155) 评论(0) 推荐(0)