img: code: <template> <view> <page-head :title="title"></page-head> <view class="uni-padding-wrap uni-common-mt"> <button type="primary">页面主操作 Normal< ...
分类:
其他好文 时间:
2020-07-14 00:24:39
阅读次数:
56
18C中, rman可以很简单的把CDB中PDB复制到另外一个CDB,仅用一条命令RMAN> connect target *connected to target database: CDB181 (DBID=3282107738) RMAN> connect auxiliary *connect ...
分类:
数据库 时间:
2020-07-13 15:17:21
阅读次数:
80
主键:保证数据的唯一性,非空且唯一,一般设置主键的语法为:字段 类型 PRIMARY KEY;或者 字段 类型,PRIMARY KEY(字段名) 外键:保证数据的完整性,一致性。一般设置的外键关联的是另一张表的主键。外键的插入或者更新不能插入或更新主键表中没有的值,切记删除主键表中的数据时, 要先去 ...
分类:
数据库 时间:
2020-07-12 22:14:35
阅读次数:
102
--数据库的三大范式 ,sql --1.第一范式 --1NF --数据表中的所有字段都是不可分割的原子值 create table student2( id int primary key, name varchar(20), address varchar(30) ); mysql> insert ...
分类:
数据库 时间:
2020-07-12 16:37:59
阅读次数:
63
外键约束; 涉及到两个表:父表,子表; 主表和副表。 --班级 create table classes( id int primary key, name varchar(20) ); --学生表 create table students( id int primary key, name va ...
分类:
数据库 时间:
2020-07-12 10:30:21
阅读次数:
79
声明:此MySQL基础学习源自尚硅谷。(推荐)b站官方链接:https://www.bilibili.com/video/BV1xW411u7ax?p=1 标识列 又称为自增长列 含义:可以不用手动的插入值,系统提供默认的序列值 特点: 1、标识列必须和主键搭配吗?不一定,但要求自增长列必须为一个k ...
分类:
数据库 时间:
2020-07-11 20:58:29
阅读次数:
69
create table Book ( id int primary key identity, name varchar(20), date datetime, remark varchar(50) ) --循环执行插入10000条数据 declare @id int declare @name ...
分类:
数据库 时间:
2020-07-10 11:33:54
阅读次数:
87
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2020-07-10 09:59:09
阅读次数:
61
create database Dai6_21 use Dai6_21 --存款 create table deposit ( Id int primary key identity, UName varchar(24), --存款人姓名 Zhon varchar(20), --账号 Pwd var ...
分类:
数据库 时间:
2020-07-10 09:53:55
阅读次数:
108
含义:一种限制,用于限制表中的数据,为了保证表中的数据的准确性和可靠性。 分类:六大约束 NOT NULL:非空,用于保证该字段的值不能为空,比如姓名、学号等。 DEFAULT:默认,用于保证该字段有默认的值。 PRIMARY KEY:主键,用于保证该字段的值具有唯一性,并且非空。比如学号、员工编号 ...
分类:
其他好文 时间:
2020-07-08 23:15:08
阅读次数:
96