码迷,mamicode.com
首页 >  
搜索关键字:unique constraint    ( 5568个结果
关于mysql自增字段问题
最近遇到mysql字段的自增问题,需要临时处理一下,然后就顺便补补课,这样就有了这样一篇文章。1.自增值是什么他是一个字段属性,是用来创建唯一标识的列的The AUTO_INCREMENT attribute can be used to generate a unique identity for...
分类:数据库   时间:2015-01-13 19:15:55    阅读次数:166
SQL 约束和表修改语句
1.约束作用: 约束的目的就是确保表中的数据的完整性2.常用的约束类型如下 主键约束:(Primary Key constraint) 要求主键列唯一,并且不允许为空 唯一约束:(Unique Constraint) 要求该列唯一,允许为空,但只能出现一个空值 检查约...
分类:数据库   时间:2015-01-13 15:44:26    阅读次数:300
Leetcode:Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:其他好文   时间:2015-01-13 15:40:23    阅读次数:169
leetcode-combination sum and combination sum II
Combination sum:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T....
分类:其他好文   时间:2015-01-13 14:08:00    阅读次数:100
LeetCode--Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:其他好文   时间:2015-01-12 16:41:29    阅读次数:144
mysql优化方案总结
u Mysql数据库的优化技术对mysql优化时一个综合性的技术,主要包括a: 表的设计合理化(符合3NF)b: 添加适当索引(index) [四种: 普通索引、主键索引、唯一索引unique、全文索引]c: 分表技术(水平分割、垂直分割)d: 读写[写: update/delete/add]分离e...
分类:数据库   时间:2015-01-12 14:33:40    阅读次数:228
mysql优化实战(explain && 索引)
实验环境: 1、sql工具:Navicat 2、sql数据库,使用openstack数据库作为示例 一、mysql索引查询 show index from instances 结果字段解释: Table:数据库表名 Non_unique:索引不能包括重复词,则为0。...
分类:数据库   时间:2015-01-12 11:00:32    阅读次数:274
数据索引及函数
一、索引(1)、簇索引建主键时建成的索引(2)、非簇索引可以设置多个,最多249个创建索引命令格式:CREATE [UNIQUE] [CLUSERED] [NONCLUSTERED] INDEX index_name --UNIQUE 唯一索引CLUSERED 簇索引NONCLUSTERED 普通....
分类:其他好文   时间:2015-01-12 09:14:39    阅读次数:118
1月11 数据索引及函数
一、索引(1)、簇索引建主键时建成的索引(2)、非簇索引可以设置多个,最多249个创建索引命令格式:CREATE [UNIQUE] [CLUSERED] [NONCLUSTERED] INDEX index_name --UNIQUE 唯一索引CLUSERED 簇索引NONCLUSTERED 普通....
分类:其他好文   时间:2015-01-11 22:56:05    阅读次数:262
[LeetCode] Unique Paths && Unique Paths II && Minimum Path Sum (动态规划之 Matrix DP )
Unique Paths https://oj.leetcode.com/problems/unique-paths/ A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram b...
分类:其他好文   时间:2015-01-11 21:30:24    阅读次数:319
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!