MySQL当中的限制条件可以使用on或者where,两者在不同的情况下具有不同而意义如果是left join on,这里的on是对右表的限制,对左表没有限制如果是inner join on/where意思是一样的[1]http://www.jb51.net/article/39814.htm
分类:
数据库 时间:
2015-08-12 01:12:12
阅读次数:
219
Given?n?non-negative integers?a1,?a2, ...,?an, where each represents a point at coordinate (i,?ai).?n?vertical lines are drawn such that the two endpoints of line?i?is at (i,?ai)...
分类:
其他好文 时间:
2015-08-11 23:49:14
阅读次数:
357
hdu 5375 Gray codeProblem Description
The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only onebit (binary digit)....
分类:
其他好文 时间:
2015-08-11 23:35:32
阅读次数:
171
reference: https://docs.djangoproject.com/en/1.8/intro/tutorial02/This tutorial begins where Tutorial 1 left off. We’re continuing the Web-poll applic...
分类:
Web程序 时间:
2015-08-11 21:12:22
阅读次数:
379
$Table = M('Table'); $count = $Table ->where()->count(); $Page = new \Think\Page($count,10); //自定义分页样式 $Page -> setConfig('next','下一页'); $Page ...
分类:
Web程序 时间:
2015-08-11 20:49:35
阅读次数:
174
CREATE?PROCEDURE?`hejin`.`pro_redeem_check`(IN?gpid?int)
BEGIN
SLELECT?SUM(amount)?INTO?@money?FROM?assets?WHERE?gpid?=?gpid;
SLELECT?@money;
END @money 一直是所有的总和而不是gpid的总...
分类:
数据库 时间:
2015-08-11 19:30:16
阅读次数:
224
Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
解题思路:
题意为构建有序数组的二分查找树。比较简单,用递归方法即可,中间的元素作为根节点,前半部分作为左孩...
分类:
其他好文 时间:
2015-08-11 18:58:16
阅读次数:
214
Convert Sorted List to Binary Search Tree
Given
a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
解题思路:
题意为构造有序链表的二分查找树。找到中间节点的办法用双指针法。注意我们...
分类:
其他好文 时间:
2015-08-11 18:51:47
阅读次数:
136
UPDATE MainDataSET Content =REPLACE(CAST(Content AS VARCHAR(8000)) , 'XM00000137' , 'XM00000078')WHERE [Key]IN (SELECT md_keyFROM ind...
分类:
数据库 时间:
2015-08-11 15:42:05
阅读次数:
156
自己写了一个比较简单效率又高的方法,分享给大家:WHERE addTime BETWEEN DATE_FORMAT(NOW(),'%Y-%m-01') AND NOW()方法就是过滤 本月1日到当前时间的数据
分类:
数据库 时间:
2015-08-11 15:40:54
阅读次数:
144