MySQL复制介绍 MySQL复制是从服务器复制到一个或多个从服务器的异步过程,整个复制过程主要由三个线程来完成,其中一个I/O线程在主服务器端,另外两个线程(SQL线程和IO线程)在从服务端。要实现MySQL复制,首先要在主服务器上打开MySQL的Binary Log功能 复制详细过程如下 1、首 ...
分类:
数据库 时间:
2017-11-13 13:40:15
阅读次数:
149
1,单一主键 2,基本类型 3,对象类型 4,组件属性 5,单表操作 单一主键 常用生成策略: assigned 有程序员生成(手工) native 由数据库底层,如果是mysql是increment,如果是Oracle是sequence。 测试assigned :代码手动给他赋值,不给ID赋值 结 ...
分类:
Web程序 时间:
2017-11-12 13:31:13
阅读次数:
250
Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. Given a binary tree, find the maximum path sum. Th ...
分类:
其他好文 时间:
2017-11-12 12:33:03
阅读次数:
161
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2017-11-12 11:12:11
阅读次数:
162
Count how many 1 in binary representation of a 32-bit integer. Count how many 1 in binary representation of a 32-bit integer. Count how many 1 in bina ...
分类:
其他好文 时间:
2017-11-12 11:10:12
阅读次数:
138
DECLARE @I INT SELECT @I=123456 SELECT CAST(CAST(@I AS varbinary(16)) AS UNIQUEIDENTIFIER) SELECT CAST(CAST(@I AS binary(16)) AS UNIQUEIDENTIFIER) SEL ...
分类:
数据库 时间:
2017-11-11 16:02:11
阅读次数:
236
1、form-data: 就是http请求中的multipart/form-data,它会将表单的数据处理为一条消息,以标签为单元,用分隔符分开。既可以上传键值对,也可以上传文件。当上传的字段是文件时,会有Content-Type来表名文件类型;content-disposition,用来说明字段的 ...
分类:
Web程序 时间:
2017-11-10 15:05:27
阅读次数:
190
题目大意:分别按先序和中序遍历同一个n结点二叉树,得到两个结点数组P和I。要求利用这些结点数组还原二叉树。 这道题考验对二叉树的理解。先说明一些基础的知识: 先序遍历表示当访问一个结点时,先访问结点值,再访问结点的左孩子,最后访问结点的右孩子。 中序遍历表示当访问一个结点时,先访问结点的左孩子,再访 ...
分类:
其他好文 时间:
2017-11-10 00:37:07
阅读次数:
198
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit ...
分类:
其他好文 时间:
2017-11-09 21:02:31
阅读次数:
98