最近遇到一个需求,需要把Oracle中一部分表的数据迁移到SQL Server数据库中。但是这些表的结构是有些差异的。
方法一,使用SQL Develper的数据导出工具,导出SQL insert语句,然后再手动修改其中的一些细节,最后在放到SQL Server中执行。因为前后的表结构是有差异的,我需要一条一条语句的去删掉一些字段,然后再删掉一些值,几条或者几十条数据还行,这40万条数据...
分类:
数据库 时间:
2014-05-26 03:15:26
阅读次数:
309
一、准备
用两台服务器做测试:
Master Server: 192.0.0.1/Linux/MYSQL 4.1.12
Slave Server: 192.0.0.2/Linux/MYSQL 4.1.18
做主从服务器的原则是,MYSQL版本要相同,如果不能满足,最起码从服务器的MYSQL的版本必须高于主服务器的MYSQL版本
二、配置master服务器...
分类:
数据库 时间:
2014-05-26 03:11:03
阅读次数:
280
database linke是建立一个数据库到另一个数据库的路径的对象,通过database link可以允许查询远程表,我理解可以算作一种分布式数据库的用法。
database link是单向连接,既然它是一种对象,那自然可以在xxx_objects表中查询到相关的信息。建立database link前需要明确几个事情:
1、确认从建立方的server可以访问远程数据库。
2、需要...
分类:
数据库 时间:
2014-05-24 23:38:45
阅读次数:
445
SQL Server 得到SPID,唯一的sessionID
用来查看哪些sessionID正在执行什么操作...
分类:
数据库 时间:
2014-05-24 22:14:13
阅读次数:
403
题目
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the i...
分类:
其他好文 时间:
2014-05-24 20:30:21
阅读次数:
342
1. WebSocket概念
WebSocket是HTML5开始提供的一种Client与Server间进行全双工(full-duplex)通讯的网络技术
双工(duplex), 指二台通讯设备之间,允许有双向的资料传输
Client和Server通过WebSocket Protocol建立连接后,双方可以互传数据并且双方都可以关闭连接
2. HTTP概念
HTTP Protoco...
分类:
Web程序 时间:
2014-05-24 19:11:12
阅读次数:
416
【题目】
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
For example:
Input: ["tea","and","ate","eat","den"]
Output: ["tea","ate","eat"]
【题意】
anagrams指的是颠倒字母顺序构成的单词,以tea为例,则与它an...
分类:
其他好文 时间:
2014-05-24 18:36:01
阅读次数:
317
/**
* Created by W.J.Chang on 2014/5/23.
*/
// 判读是否是数组的方法
console.log(Array.isArray(new Array));
console.log(Array.isArray([]));
var arr = [1,2,3];
// 遍历方法
arr.forEach(function (v){
console.log...
分类:
Web程序 时间:
2014-05-24 18:01:08
阅读次数:
305