63. Unique Paths II 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 do ...
分类:
Web程序 时间:
2019-03-08 00:26:51
阅读次数:
258
1.PRIMARY KEY(主键索引) mysql>ALTER TABLE `table_name` ADD PRIMARY KEY ( `column` ) 2.UNIQUE(唯一索引) mysql>ALTER TABLE `table_name` ADD UNIQUE (`column` ) 3 ...
分类:
数据库 时间:
2019-03-07 16:04:40
阅读次数:
254
u Mysql数据库的优化技术 对mysql优化时一个综合性的技术,主要包括 a: 表的设计合理化(符合3NF) b: 添加适当索引(index) [四种: 普通索引、主键索引、唯一索引unique、全文索引] c: 分表技术(水平分割、垂直分割) d: 读写[写: update/delete/ad ...
分类:
数据库 时间:
2019-03-06 19:15:23
阅读次数:
165
1, iOS端加载web页面、开启日志并给webView建立JS与OC的桥梁 - (void)viewWillAppear:(BOOL)animated { if (_bridge) { return; } // 1.加载网页 UIWebView* webView = [[UIWebView all ...
分类:
编程语言 时间:
2019-03-06 17:53:14
阅读次数:
218
看描述就知道是一道搜索题,不过判断条件有点多,需要全部位置都踩一遍,相当于一笔画?代码其实有点潦草了,因为额外的有点工作的事情,最近时间可能不多了。class Solution(object): def checkPath(self, grid, n, m): for i in range(n): ... ...
分类:
其他好文 时间:
2019-03-06 15:05:46
阅读次数:
140
ALTER TABLE tb ADD unique(name); ...
分类:
数据库 时间:
2019-03-05 18:41:57
阅读次数:
127
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2019-03-05 09:36:59
阅读次数:
158
sort(v.first(),v.end(),cmp())unique(v.first(),v.end(),cmp()) 第三个参数可以传入一个bool型,用来判断是不是相等,返回unique后的超尾max_element(v.first(),v.end(),cmp()) 返回一个迭代器max_el ...
分类:
其他好文 时间:
2019-03-04 21:07:39
阅读次数:
230
普通索引 CREATE INDEX IndexName ON `TableName`(`字段名`(length)) ALTER TABLE TableName ADD INDEX IndexName(`字段名`(length)) 唯一索引:值唯一,允许有空值 CREATE UNIQUE INDEX ...
分类:
数据库 时间:
2019-03-01 15:48:55
阅读次数:
207