向数据库INSERT记录时,经常会遇到唯一键(包括主键)重复而执行失败的情况。对此,Oracle, PostgreSQL和MySQL提供了一条SQL即可实现的SQL语句。 ...
分类:
数据库 时间:
2020-06-24 13:57:42
阅读次数:
83
一、模板按钮绑定切换按钮(事件->点击: this.switch_page() ) 二、js定义switch_page函数 switchPage(){ this.show("page1"); //跳转的页面显示 this.hide("index"); //当前页面隐藏 //里面参数为页面 id号 } ...
分类:
其他好文 时间:
2020-06-24 00:47:36
阅读次数:
81
/bin/目录下下 sh zkCli.sh 进入客户端目录下: 查看根目录 [zk: localhost:2181(CONNECTED) 11] ls /[cluster, controller, brokers, zookeeper, admin, isr_change_notification, ...
分类:
其他好文 时间:
2020-06-24 00:40:09
阅读次数:
206
1095 Cars on Campus (30分) Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers ...
分类:
编程语言 时间:
2020-06-24 00:20:12
阅读次数:
73
原因分析: Ah, ok. I thought it was commented out because it caused the error. You can always put a breakpoint in the line printing the error and look at t ...
分类:
其他好文 时间:
2020-06-23 21:48:50
阅读次数:
84
DECLARE @i int ,@project varchar(50),@title varchar(50) ,@userName varchar(50),@userRowGuid varchar(50) select @i=0 ,@project='dt20180328-3e44-4870-a2 ...
分类:
数据库 时间:
2020-06-23 19:37:49
阅读次数:
58
线网环境如何删除大表 周万春 比如一张大表,底层ibd文件大约是50G-100G,或者你理解成一张大表200G以上吧。哈哈!!! 利用硬链接和truncate降低drop table对线上环境的影响 在drop table的时候,所有进程不管是DDL还是DML都被hang起,直到drop结束才继续执 ...
分类:
其他好文 时间:
2020-06-23 19:33:05
阅读次数:
90
Redis 6.0.0 稳定版 在五一期间正式发布,在发布这个版本期间,Redis 的团队大约花费了 四个月的时间,期间一共经历了四个 RC 版(Release Candidate),相应改动了许多内容,是目前 Redis的最新的版本。 对于 SSL、ACL、RESP 3 、客户端缓存、线程 I/O ...
分类:
其他好文 时间:
2020-06-23 19:06:26
阅读次数:
184
配置输入流 <?xml version="1.0" encoding="utf-8"?> <message module="MATRIX" version="2.0"> <header action="REQUEST" command="INPUT_CONFIG"/> <body> <system> ...
分类:
其他好文 时间:
2020-06-23 15:55:52
阅读次数:
55
什么时绑定变量? Oracle中每一个提交的SQL语句都会经历解析,解析分为两种一种是软解析,这种解析在执行sql的时候直接到share pool中取出执行计划即 可,不是特别占用资源。而另一种硬解析,整个过程需要解析,制定执行路径,优化访问步骤等需要耗费大量的cpu资源同时也会占用门闩(latch... ...
分类:
数据库 时间:
2020-06-23 15:27:36
阅读次数:
67