码迷,mamicode.com
首页 >  
搜索关键字:unique    ( 4837个结果
重新学习Mysql数据库4:Mysql索引实现原理
"MySQL索引类型" 一、简介 MySQL目前主要有以下几种索引类型: 1.普通索引 2.唯一索引 3.主键索引 4.组合索引 5.全文索引 二、语句 CREATE TABLE table_name[col_name data type] "unique|fulltext][index|key][ ...
分类:数据库   时间:2019-08-24 17:10:21    阅读次数:109
权值线段树模板题
array Time Limit: 1500ms Memory Limit: 256M Description You are given an array . Initially, each element of the array is unique.Moreover, there are in ...
分类:其他好文   时间:2019-08-24 15:29:31    阅读次数:66
程序自动分析
大水题,还提高+/省选- 先离散一下,然后getfa和combine就行 部分代码: 1 for(int i=1;i<=n;++i) 2 { 3 a[i].x=read(); a[i].y=read(); a[i].e=read(); 4 ls[++cnt]=a[i].x; 5 ls[++cnt]= ...
分类:其他好文   时间:2019-08-22 23:46:14    阅读次数:78
数据库
存储引擎 primary key也是innodb引擎查询必备的索引。 Innodb 目前5.1之后MySQL版本默认的存储引擎,支持事务,行锁,外键,因此数据更安全 innodb在建表的时候会产生两个文件:一个是表结构文件,一个是存储数据文件 myIsam 5.1版本之前的MySQL的默认存储引擎, ...
分类:数据库   时间:2019-08-22 22:12:27    阅读次数:113
【模板】 主席树
1 // poj2104 2 // p3834 3 #include 4 #include 5 #include 6 using namespace std; 7 const int N=1e5+7; 8 int a[N],b[N],rt[N]; 9 int cnt=0; 10 struct nod... ...
分类:其他好文   时间:2019-08-22 01:00:51    阅读次数:56
Python 数据行的高级查询
单表查询 一 以此表为例 create table emp( id int not null unique auto_increment, name varchar(20) not null, sex enum('male','female') not null default 'male', #大 ...
分类:编程语言   时间:2019-08-21 21:47:26    阅读次数:111
一对多 多对多 一对一
一、一对多(Foreign Key) 1.建表存储员工信息 如果我们把员工所有信息放在一张表中,类似于我们将所有的代码都写在用一个py文件内 把所有数据都存放于一张表的弊端1.组织结构不清晰2.浪费硬盘空间(重复存储公共信息)3.扩展性极差(如果部门名称变化你去一个一个员工的更改部门名称?肯定不能) ...
分类:其他好文   时间:2019-08-21 09:32:11    阅读次数:118
数据库---2
表操作 今日内容 1.数据类型 建表的时候,字段都有对应的数据类型 整型 浮点型 字符类型(char与varchar) 日期类型 枚举与集合 2.约束条件 primary key unique key not null 详细内容 创建表的完整语法 基本数据类型 整型 分类:TINYINT SMALL ...
分类:数据库   时间:2019-08-20 00:36:26    阅读次数:104
Gym–101061A Cards(有待更新)
time limit per test 2.0 s memory limit per test 64 MB input standard input output standard output Omar has a deck of cards. Every card has a unique in... ...
分类:其他好文   时间:2019-08-19 23:09:33    阅读次数:113
【MySQL】完整性约束
" 目录 not null default unique 单列唯一 联合唯一 primary key 单列主键 复合主键 auto_increment 步长与偏移量 foreign key 约束条件与数据类型的宽度一样,都是可选参数作用:用于保证数据的完整性和一致性 主要分为: primary ke ...
分类:数据库   时间:2019-08-19 11:19:36    阅读次数:115
4837条   上一页 1 ... 55 56 57 58 59 ... 484 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!