码迷,mamicode.com
首页 >  
搜索关键字:unique    ( 4837个结果
Oracle的主键约束、唯一约束与外键约束
http://www.shangxueba.com/jingyan/122163.html主键: 1.主键约束: 一个表只能有一个主键约束。主键可以是单个字段,也可以是多个字段。无论是哪种情况,其所有字段都是NOT NULL。 2.Unique约束:一个表可以有多个Unique约束,Unique的字...
分类:数据库   时间:2014-11-08 14:53:14    阅读次数:252
leetcode Unique Paths II
题目:和上一题类似,就是这个时候给定了矩阵包含0和1,1代表不能从这里走。我的想法其实很明确,还是用动态规划,只是碰到壁垒的时候要进行考虑。还有初始化很重要。因为1本来是要用来代表在这里出发到终点有一种可能的,所以壁垒的1要用其他代替,我用-1代表是壁垒。如果给定的数组第一个数就是1,那永远都出发不...
分类:其他好文   时间:2014-11-08 00:50:30    阅读次数:259
leetcode Unique Paths
题目:给定一个m*n的矩阵,从头开始,只能往右边和下边走,一次走一格,知道走到最后一个(右下角)为止。总共有多少种走法。典型的动态规划吧。其实从头走到尾部,和从尾部开始走到头是一样的次数。我们用一个矩阵记录到第一格子的次数,那么可以看到有如下的表:假设是3*4的矩阵,那么我们要返回的就是10了,每个...
分类:其他好文   时间:2014-11-07 23:22:48    阅读次数:137
[leetcode]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 is marked as 1 and 0 respectively in ...
分类:其他好文   时间:2014-11-07 20:56:34    阅读次数:272
oracle_约束constraint
?? oracle_约束constraint ①什么是约束 1约束是表级的强制规定     有以下五种约束:         NOT NULL         UNIQUE         PRIMARY KEY         FOREIGN KEY         CHECK 注意事项 如果不指定约束名 ,Oracle server 自动按照 SYS_Cn 的格式指定约...
分类:数据库   时间:2014-11-07 14:53:11    阅读次数:252
OCP-1Z0-051-题目解析-第28题
28. Which two statements are true regarding constraints? (Choose two.)A. A foreign key cannot contain NULL values.B. A column with the UNIQUE constrai...
分类:其他好文   时间:2014-11-07 14:28:31    阅读次数:135
实验二 SQL定义语言
Create table stud (sno char(8) primary key, sname char(4) not null unique, --学生姓名 ssex char(2) default '男' check(ssex='男' or ssex='女'), sage t...
分类:数据库   时间:2014-11-07 14:22:36    阅读次数:261
[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 r...
分类:其他好文   时间:2014-11-07 11:24:26    阅读次数:160
[Erlang危机]Erlang In Danger 序言
IntroductionOn Running Software运行时软件There’s something rather unique in Erlang in how it approaches failure compared to most other programming languages. There’s this common way of thinking where the...
分类:其他好文   时间:2014-11-06 20:04:07    阅读次数:296
mysql replace into用法详细说明
REPLACE的运行与INSERT很相似。只有一点例外,假如表中的一个旧记录与一个用于PRIMARYKEY或一个UNIQUE索引的新记录具有相同的值,则在新记录被插入之前,旧记录被删除。注意,除非表有一个PRIMARY KEY或UNIQUE索引,否则,使用一个REPLACE语句没有意义。该语句会与I...
分类:数据库   时间:2014-11-06 19:27:21    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!