merge into users a
using temp_users b
on (a.userid = b.user_id)
when matched then update set a.password = bb.password, a.name = b.name
when not matche...
分类:
其他好文 时间:
2015-03-30 12:38:29
阅读次数:
103
环境:
1. 本地是空的,什么都没有
2. 有2个工程,分别在git的不同项目上
3. 需要在本地合并这2个项目
开工:
1. 从远端clone第一个工程的代码下来,并切换到你要合并的分支上。
git clone git@xxx.com/project_1.git //这个操作会在本地建一个project_1的文件夹,里面就是项目1的代码。
cd project_1
git chec...
分类:
其他好文 时间:
2015-03-29 23:43:56
阅读次数:
294
练习3-70原文代码(define (merge-weighted s1 s2 weight)
(cond ((stream-null? s1) s2)
((stream-null? s2) s1)
(else
(let ((cars1 (stream-car s1))
(cars2 (stream-car s2)))
(cond (...
分类:
其他好文 时间:
2015-03-29 10:50:12
阅读次数:
132
最早接触并查集的时候是在做一道最小生成树问题上,当时还不会并查集,题解说用克鲁斯卡尔算法,用并查集来维护,就能够完成最小生成树。并查集是什么呢?其实,并查集就是一个集合,它有两种操作,一个是合并(merge),一个是查找(getf)。 合并就是说把具有相同祖先的集合合并成为一个集合,查找就是说,.....
分类:
其他好文 时间:
2015-03-28 20:17:12
阅读次数:
163
Given a collection of intervals, merge all overlapping intervals.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
/**
* Definition for an interval.
* struct In...
分类:
其他好文 时间:
2015-03-28 15:51:02
阅读次数:
135
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
Examp...
分类:
其他好文 时间:
2015-03-28 14:27:39
阅读次数:
144
1 题目:2.2.1 Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbe...
分类:
其他好文 时间:
2015-03-28 08:48:00
阅读次数:
185
import java.util.Arrays;public class Merge_sort {public static void main(String[] args){ int[] nums={ 2, 7, 8, 3, 1, 6, 9, 0, 5, 4 }; sort(nums,0,nums...
分类:
编程语言 时间:
2015-03-27 22:07:29
阅读次数:
176
题目链接:intersection-of-two-linked-lists
/**
*
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
...
分类:
其他好文 时间:
2015-03-22 09:19:40
阅读次数:
151
相关概念BUCKET :每个bucket上挂有一个 chunk list。同一个BUCKET中的chunk在物理地址上是不一定相邻的FREE LISTS:按bucket划分,共有255个,bucket 0---bucket 254RESERVED FREE LISTS:在SQL语句所需CHUNK大于...
分类:
其他好文 时间:
2015-03-21 22:39:16
阅读次数:
229