Postgresql 有以下三种方法设置主键递增的方式,下面来看下相同点和不同点。--方法一create table test_a ( id serial, name character varying(128),constraint pk_test_a_id primary key( id)); ...
分类:
数据库 时间:
2017-10-20 14:36:04
阅读次数:
221
对于这个问题使用Masonry是很好解决的。 注意:绿色的是label2,当indexpath.section % 2 == 0时,label2不存在。 关键代码如下: if (indexPath.section % 2 == 0) { [cell.label2 mas_updateConstrai ...
分类:
移动开发 时间:
2017-10-19 16:34:46
阅读次数:
358
Description 经过三十多个小时的长途跋涉,小Z和小D终于到了NOI现场——南山南中学。一进校园,小D就被花所吸引了(不要问我为什么),遍和一旁的种花园丁交(J)流(L)了起来。 他发现花的摆放竟有如此奥秘:圆形广场共有 N 个种花的位置,顺时针编号1到N。并且每个位置都有一个美观度ai , ...
分类:
其他好文 时间:
2017-10-17 12:31:52
阅读次数:
332
题目来源:Fibonacci Modified We define a modified Fibonacci sequence using the following definition: Given terms and where , term is computed using the fol ...
分类:
其他好文 时间:
2017-10-16 22:16:17
阅读次数:
256
约束的概念:确保在列中输入有效的值并维护表之间的关系。 Primary key约束 功能:primary key(主键约束),一个表中只能有一个,不能有空值,不能有重复值. 创建表时定义约束:字段名 数据类型[长度] primary key Unique约束功能:unique(唯一约束), 指定在同 ...
分类:
数据库 时间:
2017-10-16 21:46:34
阅读次数:
215
D - Axis-Parallel Rectangle Time limit : 2sec / Memory limit : 256MB Score : 400 points Problem Statement We have N points in a two-dimensional plane. ...
分类:
其他好文 时间:
2017-10-15 21:20:01
阅读次数:
235
1.Constraints priority 将evInputView的高度约束的priority设为750,evInputView的inputTextView如果不设高度约束,那么高度就是defaultInputViewH,如果设了高度,那么就是这个高度. evInputView.snp.rema ...
分类:
其他好文 时间:
2017-10-12 16:59:21
阅读次数:
160
[self.speakerButton mas_remakeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self.authorSepLineView.mas_right).offset(5); make.centerY.eq... ...
分类:
移动开发 时间:
2017-10-09 17:41:28
阅读次数:
284
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:
其他好文 时间:
2017-09-27 10:06:37
阅读次数:
152
一、DDL 1、创建数据库 *数据库名不能中文, 不能数字正常英文 , 关键字会自动变大写 2、删除数据库 3、使用数据库 *如果有很多数据库,要具体使用时,可以手动选择,可以通过语法形式声明使用哪一个 二、操作表 1、创建表 eg:创建一张学生表 2、删除表 3、修改表 三、DML操作语句 1、添 ...
分类:
数据库 时间:
2017-09-23 17:28:24
阅读次数:
213