码迷,mamicode.com
首页 >  
搜索关键字:dup    ( 863个结果
eclipse指定jdk版本
背景:机器上装有jdk7和8两个版本,命令行中查看java版本为1.7,而neon对jdk的版本要求是1.8,又不想修改系统默认的jdk版本。 解决方法:eclipse安装目录下找到eclipse.ini文件,增加如下参数: -vmD:\java\jdk1.8\bin 完整文件: ...
分类:系统相关   时间:2018-03-11 02:43:04    阅读次数:210
【原创】<Debug> “duplicate connection name”
【Problem】 duplicate connection name 【Solution】 在Qt上使用SQLite的时候,如果第二次使用QSqlDatabase::addDatabase()方式时,就会出现以下错误提示: QSqlDatabasePrivate::addDatabase: dup ...
分类:其他好文   时间:2018-03-07 18:55:12    阅读次数:181
DAY11-MYSQL索引原理与慢查询优化
一 介绍 为何要有索引? 一般的应用系统,读写比例在10:1左右,而且插入操作和一般的更新操作很少出现性能问题,在生产环境中,我们遇到最多的,也是最容易出问题的,还是一些复杂的查询操作,因此对查询语句的优化显然是重中之重。说起加速查询,就不得不提到索引了。 什么是索引? 索引在MySQL中也叫做“键 ...
分类:数据库   时间:2018-03-07 00:45:56    阅读次数:256
[Leetcode] Sum 系列
Sum 系列题解 Two Sum题解 题目来源:https://leetcode.com/problems/two sum/description/ Description Given an array of integers, return indices of the two numbers s ...
分类:其他好文   时间:2018-02-28 11:58:45    阅读次数:169
Mysql实现无插入有更新(不知主键的情况下)
网上很多资料说有两种方式 (必须现有唯一键) 1.INSERT 中ON DUPLICATE KEY UPDATE的使用 2.REPLACE的使用 通过可以得出结果: 如果a和b字段 能决定唯一 例子: REPLACE INTO tb(id,a,b,c,d) SELECT IFNULL( (SELEC ...
分类:数据库   时间:2018-02-25 13:17:16    阅读次数:244
【Leetcode】83. Remove Duplicates from Sorted List
Question: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1- ...
分类:其他好文   时间:2018-02-25 13:11:44    阅读次数:172
classical binary search
Given a target integer T and an integer array A sorted in ascending order, find the index i such that A[i] == T or return -1 if there is no such index ...
分类:其他好文   时间:2018-02-25 01:12:42    阅读次数:180
dup和dup2函数
下面两个函数都可用来复制一个现存的文件描述符: #include<unistd.h> int dup(int filedes); int dup2(int filedes,int filedes2); 两函数的返回值:若成功则返回新的文件描述符,若出错则返回-1 由dup返回的新文件描述符一定是当前 ...
分类:其他好文   时间:2018-02-24 10:49:59    阅读次数:173
[Python Test] Use pytest fixtures to reduce duplicated code across unit tests
In this lesson, you will learn how to implement pytest fixtures. Many unit tests have the same resource requirements. For example, an instantiated obj ...
分类:编程语言   时间:2018-02-22 22:34:06    阅读次数:245
在线激活 pycharm 方法
(1)更新hosts文件 添加如下:0.0.0.0 account.jetbrains.com hosts文件,在windows中的地址为: (2) 复制通用注册码,粘贴在注册界面的Activation code的输入框中,点击 ok。 EB101IWSWD-eyJsaWNlbnNlSWQiOiJF ...
分类:其他好文   时间:2018-02-19 14:56:34    阅读次数:586
863条   上一页 1 ... 40 41 42 43 44 ... 87 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!