Oracle做insert或者update时未提交事务导致表锁定解决办法 //查看被锁定表有几个 select object_name,machine,s.sid,s.serial# from v$locked_object l,dba_objects o ,v$session s where l. ...
分类:
数据库 时间:
2020-06-28 18:22:04
阅读次数:
193
1.oracle 用户环境: 主库: [oracle@hzmtx admin]$ cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi ...
分类:
数据库 时间:
2020-06-28 00:20:49
阅读次数:
82
恢复内容开始 Range Sum Query 2D - Immutable (M) 题目 Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left cor ...
分类:
其他好文 时间:
2020-06-27 09:36:59
阅读次数:
61
1. 连接查询的补充 (1) 内连接查询(两张表匹配的部分,比如这个学生即在学生表、又在成绩表) 主表 inner join 从表 on 主键=外键 => where 主键=外键 select * from info inner join mark on info.sid=mark.sid sele ...
分类:
数据库 时间:
2020-06-26 18:40:13
阅读次数:
56
网上百度说是在mutation外修改state中的状态值,会报下列错误,可我明明在mutations中修改的状态值,还是报错接着百度,看到和我类似的问题,说mutations中只能用同步代码,异步用actions,我试着把修改值放在请求外面,结果不报错了参考:https://segmentfault... ...
分类:
其他好文 时间:
2020-06-26 12:50:44
阅读次数:
59
Hive、Spark SQL和Impala三种分布式SQL查询引擎都是SQL-on-Hadoop解决方案,但又各有特点。前面已经讨论了Hive和Impala,本节先介绍一下SparkSQL,然后从功能、架构、使用场景几个角度比较这三款产品的异同,最后附上分别由cloudera公司和SAS公司出示的关 ...
分类:
数据库 时间:
2020-06-25 21:29:31
阅读次数:
581
每个账户都有自己唯一的SID(Security Identifier). 可以将前面的数值理解为一台计算机的唯一值,后面的500是用户ID(UID). 在Windows中系统管理员的UID为500.任何普通用户的UID是从1000开始的. 密码存储的位置 : C:\Windows\system32\ ...
分类:
其他好文 时间:
2020-06-25 15:21:54
阅读次数:
90
思路:主要是看每门课程下,每个分数比该课程所有分数小的有几个 保留名次空缺: select a.cid, a.sid, a.score , count(a.score<b.score)+1 as rank from sc a left join sc b on a.cid=b.cid and a.s ...
分类:
数据库 时间:
2020-06-24 23:26:42
阅读次数:
132
需求背景 需求 一张数据表 其中有sid字段,代表tag,每行数据可能有多个tag字段 统计全量数据中所有tag出现的次数(按tag分组,分别有多少数据) source table demo id sid 1 a3,a4,a1,a2,a5 2 a5,a3,a4,a2 3 a5,a3,a4 targe ...
分类:
数据库 时间:
2020-06-24 16:34:59
阅读次数:
59
For Flink applications to run reliably at large scale, two conditions must be fulfilled: The application needs to be able to take checkpoints reliably ...
分类:
其他好文 时间:
2020-06-24 14:07:13
阅读次数:
47