什么是约束? 约束是数据库中保证数据完整性的方法 1.实体完整性 列如:每个表中有一个必须要指定的字段 2.区域完整性 针对表中的某个字段进行特殊化限制 3.参照完整性 表与表之间的一种特殊化关联限制 约束类型(6): 1.主键约束(PRIMARY KEY) 确定表中的标识列(主键字段不能为空,必须 ...
分类:
数据库 时间:
2020-07-02 19:44:34
阅读次数:
60
1、解压压缩包 我的放到:K:\Mysql5.7\mysql-5.7.15-winx64 2、配置环境变量 新建MYSQL_HOME: K:\Mysql5.7\mysql-5.7.15-winx64 path 添加 : %MYSQL_HOME%\bin 3、新建并修改配置文件my.ini [mysq ...
分类:
数据库 时间:
2020-06-30 10:32:08
阅读次数:
81
检查当前实例是否有外键/视图/触发器/事件等 ## 检查非系统数据库外视图 SELECT * FROM information_schema.views WHERE TABLE_SCHEMA NOT IN('information_schema','sys','performance_schema' ...
分类:
数据库 时间:
2020-06-29 20:16:42
阅读次数:
92
`<!doctype html> 拍照 拍照 --> !(function () { function takePhotos() { if (videoPlaying) { let canvas = document.getElementById('canvas'); canvas.width = ...
分类:
Web程序 时间:
2020-06-28 14:57:59
阅读次数:
59
问题: 数组快照问题: 1. 初始化长度为length的数组:SnapshotArray 2. 向数组第x位插入数字val:set(int index, int val) 3. 对当前状态对数组做快照(返回值位当前快照id):snap() 4. 获取快照id为snap_id时,数组第index位上的 ...
分类:
其他好文 时间:
2020-06-27 13:21:31
阅读次数:
52
https://blog.51cto.com/wyzwl/1948035 一、并行机制的简述 并行处理的机制实际上就是把一个要扫描的数据集分成很多小数据集,Oracle会根据初始化参数 PARALLEL_MIN_SERVERS=n的值启动几个并行服务进程同时处理这些小数据集,最后将这些结果汇总,作为 ...
分类:
数据库 时间:
2020-06-23 13:46:34
阅读次数:
61
题目如下: Given an integer n and an integer start. Define an array nums where nums[i] = start + 2*i (0-indexed) and n == nums.length. Return the bitwise X ...
分类:
其他好文 时间:
2020-06-22 15:49:58
阅读次数:
98
题目如下: Given a binary string s and an integer k. Return True if every binary code of length k is a substring of s. Otherwise, return False. Example 1: ...
分类:
其他好文 时间:
2020-06-13 10:37:42
阅读次数:
60
题目如下: Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of s ...
分类:
其他好文 时间:
2020-05-29 09:26:12
阅读次数:
59