首先,我想说,我真的是渣了,一个这个玩意弄了半天,算了,直接切入正题吧。第一步:先写好存储过程用了两张表,你们自己建立吧if exists(select name from sysobjects where name='StaySchoolNum'and type='p') ...
分类:
数据库 时间:
2015-03-08 22:52:07
阅读次数:
286
Linked List Cycle II问题:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it withou...
分类:
其他好文 时间:
2015-03-08 21:21:21
阅读次数:
159
Container With Most Water问题:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn suc...
分类:
其他好文 时间:
2015-03-08 19:58:18
阅读次数:
123
1. 查询多行记录,以sql的md5值为key,缓存数组(个人觉得最通用的方法)$mem = new Memcache();$mem->connect('127.0.0.1',11211);$id = (int)$_GET['id'];$sql = "SELECT * FROM test WHERE...
分类:
Web程序 时间:
2015-03-08 17:03:40
阅读次数:
190
上接mysql篇(1)测试数据库版本1.使用自带函数version()@@version@@global.versionexamplesselect version();SELECT * FROM Users WHERE id = '1' AND MID(VERSION(),1,1) = '5';m...
分类:
数据库 时间:
2015-03-08 14:10:38
阅读次数:
184
1.题目Given an array where elements are sorted in ascending order, convert it to a height balanced BST.2.解决方案1 struct Node{
TreeNode* t;
int l;
int r;
Node(vector &num, int l, int r)...
分类:
其他好文 时间:
2015-03-08 10:28:52
阅读次数:
148
Title:UPdate 延时盲注之小技巧 --2014-06-05 15:21UPDATE TABLEZZZ SET zz=111111 where id=$id当TABLEZZZ表为空的时候,注入方式(其实通用有值无值):UPDATE TABLEZZZ SET zz=111111 where i...
分类:
其他好文 时间:
2015-03-07 18:32:24
阅读次数:
155
SELECT [ID] FROM [ADMIN] WHERE [ISLOCKED]0
分类:
数据库 时间:
2015-03-07 18:31:24
阅读次数:
138
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets,
and Nt is the total number of distinct n...
分类:
其他好文 时间:
2015-03-07 17:13:09
阅读次数:
156
mysql -uroot -puse mysqlupdate user set Password = password('123456') where User='root';flush privileges;
分类:
数据库 时间:
2015-03-07 17:05:14
阅读次数:
184