1、创建Mysql触发器: 语法: CREATE TRIGGER trigger_name
trigger_time trigger_event ON tbl_name FOR EACH ROW BEGIN trigger_stmt //语句块
END; CR...
分类:
数据库 时间:
2014-05-09 10:52:24
阅读次数:
478
题目描述N integers are arranged on a circle clockwise.
Given two integers M and K. For each position, you should take M continuous
integers on the left an...
分类:
其他好文 时间:
2014-05-09 10:30:49
阅读次数:
350
转载:http://www.kernelchina.org/node/1050linux的list实现之中有如下东东:#define
list_for_each(pos, head) \ for (pos = (head)->next; prefetch(pos->next),
pos != (h....
分类:
系统相关 时间:
2014-05-09 10:04:38
阅读次数:
323
hbase与传统关系数据库区别hbase适合于非结构化数据存储的数据库。介于Map Entry
和 DB row之间的一种数据存储方式。1. 数据类型:
HBase只有简单的字符串类型,它只保存字符串所有的类型都是交给用户自己处理。关系型数据库可以选择类型2. 数据操作: HBase操作只有很简单的...
分类:
数据库 时间:
2014-05-09 09:51:14
阅读次数:
444
linux内核中的list太好用了,可惜VC编译器不支持
typeof关键字,将linux内核中的list直接移植过来不能用修改所有与typeof相关的代码后,终于可以勉强在VC下运行起来了,但是还不完美,list_for_each_entry和list_for_each_entry_safe需要增...
分类:
其他好文 时间:
2014-05-09 08:57:19
阅读次数:
603
戳我去解题Given amxnmatrix, if an element is 0, set its
entire row and column to 0. Do it in
place.这题还是很简单的,就是有点坑,遍历矩阵的时候,每遇到0的时候,我们不能立即将所在行和列置0,否则,到最后矩阵所有...
分类:
其他好文 时间:
2014-05-09 08:51:57
阅读次数:
253
戳我去解题Write an efficient algorithm that searches for
a value in anmxnmatrix. This matrix has the following properties:Integers in
each row are sorted f...
分类:
其他好文 时间:
2014-05-09 08:27:24
阅读次数:
241
1、Clone Graph
Clone an undirected graph. Each node in the graph contains a label and
a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as...
分类:
其他好文 时间:
2014-05-09 02:17:58
阅读次数:
336
ZOJ Problem Set - 3780
Paint the Grid Again
Time Limit: 2 Seconds Memory Limit: 65536 KB
Leo has a grid with N × N cells. He wants to paint each cell with a specific color (either black ...
分类:
其他好文 时间:
2014-05-09 02:00:35
阅读次数:
506
表结构如下:mysql> show create table
user\G;*************************** 1. row *************************** Table:
userCreate Table: CREATE TABLE `user...
分类:
数据库 时间:
2014-05-08 15:15:51
阅读次数:
416