https://mp.weixin.qq.com/s/2obpN57D8hyorCMnIu_YAg ...
分类:
其他好文 时间:
2020-07-18 00:37:13
阅读次数:
99
* 概念: 对表中的数据进行限定,保证数据的正确性、有效性和完整性。 * 分类: 1. 主键约束:primary key 2. 非空约束:not null 3. 唯一约束:unique 4. 外键约束:foreign key * 非空约束:not null,值不能为null 1. 创建表时添加约束 ...
分类:
数据库 时间:
2020-07-18 00:31:42
阅读次数:
90
首先先让我们认识离散化用的函数,STL给我们提供了便利: unique(start,end);//取出有序序列重复元素,左闭右开,返回去重复序列最后一个元素位置 lower_bound(start,end,key);//左闭右开中寻找第一个大等于key的数,返回值 std::sort(a+1,a+n ...
分类:
其他好文 时间:
2020-07-17 22:24:59
阅读次数:
82
近日,遇到朋友问及如何生成UUID 是 通用唯一识别码(Universally Unique Identifier)方法,其实数据中是支持的 Oracle中生成跨系统的唯一识别符UUID非常方便,比生成序列还简单,直接用sys_guid()就行, 例如select sys_guid() from d ...
分类:
数据库 时间:
2020-07-16 00:14:52
阅读次数:
120
96. 不同的二叉搜索树 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/unique-binary-search-trees 题目 给定一个整数 n,求以 1 ... n 为节点组成的二叉搜索树有多少种? 示例: 输入: 3 输出: 5 解释: ...
分类:
编程语言 时间:
2020-07-15 23:11:39
阅读次数:
74
django rest framework 多对多序列化,折腾了好久,也没找到默认是怎么使用,只能自己重构了。 1 model class Roles(models.Model): """ 角色信息 """ title = models.CharField(max_length=32,unique= ...
分类:
其他好文 时间:
2020-07-15 22:59:44
阅读次数:
118
Goreplay 介绍 GoReplay是一个开源的网络监控工具,它可以记录你的实时流量,并用于跟踪、负载测试、监控和详细分析。 GoReplay提供了一种unique approach for shadowing方式:GoReplay不是以代理形式,而是监听网络接口上的流量,不需要对生产基础设施进 ...
分类:
系统相关 时间:
2020-07-15 15:27:15
阅读次数:
116
react异常警告:Each child in a list should have a unique “key” prop 原因:Dom在渲染数组时,需要一个key,不然嵌套数组时会引起歧义 解决: 1 <div className="classlist-contaier"> 2 {this.st ...
分类:
其他好文 时间:
2020-07-15 12:46:45
阅读次数:
435
hadoop Shuffle Error: Exceeded MAX_FAILED_UNIQUE_FETCHES; bailing-out 程序里面打开文件数达到上限,系统一般默认数量是1024,(用ulimit -a可以看到)vi /etc/security/limits.conf 添加 :sof ...
分类:
其他好文 时间:
2020-07-15 12:46:25
阅读次数:
86
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:
其他好文 时间:
2020-07-15 01:00:03
阅读次数:
73