码迷,mamicode.com
首页 >  
搜索关键字:unique constraint    ( 5568个结果
4Sum
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ...
分类:其他好文   时间:2014-06-29 15:08:56    阅读次数:263
4Sum
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ...
分类:其他好文   时间:2014-06-04 22:44:27    阅读次数:250
Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:其他好文   时间:2014-06-04 20:15:09    阅读次数:289
Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:其他好文   时间:2014-06-04 20:14:25    阅读次数:287
Permutation Sequence
The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:其他好文   时间:2014-06-04 19:56:17    阅读次数:347
Unique Paths II
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:其他好文   时间:2014-06-04 19:54:55    阅读次数:258
【总结】alter table *** add constraint *** 用法
1.主键约束要对一个列加主键约束的话,这列就必须要满足的条件就是非空。因为主键约束:就是对一个列进行了约束,约束为(非空、不重复)。【格式】alter table 表格名称 add constraint 约束名称 增加的约束类型 (列名)例子:要对一个列加主键,列名为id,表名为empalter t...
分类:其他好文   时间:2014-05-30 13:00:15    阅读次数:263
数据库-02
创建表的语法:1:关于表的结构的创建 表的字段有那些,什么数据类型创建表: 主键约束(primary key) 主键不能为空(not null) 一张表只有一个主键,修改表--标识列(identity) --主键约束(primary key)------pk_字段名 --唯一约束(unique)--...
分类:数据库   时间:2014-05-30 01:40:13    阅读次数:279
leetcode -- 3sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2014-05-28 16:47:30    阅读次数:308
mysql 常用
1.复制表 create table t2 like t1; insert into t2 select * from t1;2.索引 a. ALTER TABLE 用来创建普通索引,UNIQUE 索引和 PRIMARY KEY 索引 ALTER TABLE table_name ADD...
分类:数据库   时间:2014-05-28 01:29:48    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!