码迷,mamicode.com
首页 >  
搜索关键字:unique    ( 4837个结果
【数据库】相关代码集
1 Create Table student 2 ( 3 Sno char (9) Primary key , 4 Sname char (20) Unique , 5 Ssex char (2) , 6 Sage smallint , 7 Sdept char(20) 8 9 ); 10 11 C ...
分类:数据库   时间:2019-09-20 23:04:11    阅读次数:135
MySQL索引
一、索引概念和分类 对数据库表中的一列或者多列的值进行排序的一种结构,旨在提高数据的查询效率。 1.普通索引 不需要添加任何限制条件,可以创建在任何数据类型中,由字段本身的完整性约束决定。 2.唯一索引 使用unique参数进行设置,该值必须是唯一的。主键是一种特殊的唯一索引。 3.全文索引 使用f ...
分类:数据库   时间:2019-09-19 01:01:54    阅读次数:119
C++11之 unique_lock和lock_guard避免死锁
#include #include #include #include #include using namespace std; class LogFile { public: LogFile() { f.open("log.txt"); } ~LogFile() { } void shared_... ...
分类:编程语言   时间:2019-09-17 12:53:35    阅读次数:194
Leetcode 62. Unique Paths
https://leetcode.com/problems/unique-paths/ Medium Medium Medium A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diag ...
分类:其他好文   时间:2019-09-14 19:30:03    阅读次数:100
MySQL建表时不设置主键
在mysql的技术文档里面有如下文字: If you do not define a PRIMARY KEY for your table, MySQL picks the first UNIQUE index that has only NOT NULL columns as the primar ...
分类:数据库   时间:2019-09-14 18:54:55    阅读次数:538
leetcode 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 down or right at any p ...
分类:其他好文   时间:2019-09-14 00:17:29    阅读次数:98
LeetCode 63. Unique Paths II
"题目" 水题,和上一题一样的。 ...
分类:其他好文   时间:2019-09-13 10:36:42    阅读次数:70
js - 实现数组去重
方法一:创建一个新的临时数组来保存数组中已有的元素 Array.prototype.unique = function(){ let uniqueArr = []; for(let i = 0; i { return a b }) for(let i = 1; i ...
分类:编程语言   时间:2019-09-12 23:21:50    阅读次数:64
[虚拟机]Usernames System 用户名系统
In this challenge, you will create the username portion of a registration system. All usernames must be unique. If a new user requests a name that is ...
分类:其他好文   时间:2019-09-12 18:36:50    阅读次数:123
【矩阵快速幂】之奥运 hdu 2254
1、城市的编号不是从0到n-1,而是随便的一个数字,需要离散化否则不能存相关信息 2、城市数不超过30,也就是说我的方法开矩阵不超过60,但是我残念的一开始以为最多可能有20000个不同城市 血崩! 3、图中可能有重边,所以别用=1,要用++操作 4、询问中v1,v2可能在前面的城市编号集中没有出现 ...
分类:其他好文   时间:2019-09-12 00:10:05    阅读次数:83
4837条   上一页 1 ... 51 52 53 54 55 ... 484 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!