mysql的replaceinto和onduplicatekeyupdate测试笔记mysql>createtabletbl_insert_tmp(idint(5),addr_numberint(10),namevarchar(20),primarykey(id),uniquekeyudx_addr_number(addr_number));QueryOK,0rowsaffected(0.05sec)mysql>showcreatetabletbl_insert_tmp\G******..
分类:
数据库 时间:
2015-05-27 01:10:55
阅读次数:
275
一,环境信息
主库:rhel6.2 oracle 11.2.0.4
duplicate库:orace linux 6.6 oracle 11.2.0.3
注意:数据库软件版本一定要相同,最起码compatible参数要一致
二,在duplicate端创建参数文件和密码文件
1.确认主库数据文件和日志文件的路径
SQL> select name from v$datafi...
分类:
其他好文 时间:
2015-05-26 19:00:24
阅读次数:
249
Subsets
Given a set of distinct integers, nums, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets...
分类:
其他好文 时间:
2015-05-26 16:11:41
阅读次数:
107
Contains Duplicate问题:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at l...
分类:
其他好文 时间:
2015-05-26 15:55:23
阅读次数:
116
LeetCode Contains Duplicate题目思路刚开始还以为是什么异或判重;
后来发现是自己想错了- -;
还是哈希好点。代码bool containsDuplicate(int* nums, int numsSize) {
if (numsSize <= 1) return false;
int length = 100007;
if (numsSize...
分类:
其他好文 时间:
2015-05-26 09:15:33
阅读次数:
113
原文链接:http://www.jb51.net/article/47090.htm今天听同事介绍oracle到mysql的数据migration,他用了Insert into ..... on duplicate key update ...,我当时就想怎么不用Replace呢,于是回来就仔细查了...
分类:
数据库 时间:
2015-05-25 22:15:11
阅读次数:
201
今天修改了自己项目的部分代码,发现XCode编译的时候报错:duplicate symbols for architecture armv71.排查是否有名字重复的文件;2.检查是否在#import头文件的时候,不小心将.h写成了.m(这种情况居多,本人属于此类情况)
分类:
移动开发 时间:
2015-05-25 17:56:47
阅读次数:
127
Contains Duplicate
Given an
array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return fal...
分类:
其他好文 时间:
2015-05-25 16:35:22
阅读次数:
111
https://leetcode.com/problems/contains-duplicate/Given an array of integers, find if the array contains any duplicates. Your function should return tr...
分类:
其他好文 时间:
2015-05-25 14:26:13
阅读次数:
169
Write a SQL query to find all duplicate emails in a table named Person.
+----+---------+
| Id | Email |
+----+---------+
| 1 | a@b.com |
| 2 | c@d.com |
| 3 | a@b.com |
+----+---------+
For ...
分类:
数据库 时间:
2015-05-24 08:53:04
阅读次数:
133