正向代理示例配置:ProxyRequests OnProxyVia On Order deny,allowDeny from allAllow from 192.168.0CacheEnable disk /CacheRoot "/var/cache/mod_proxy"反向代理示例配置:Proxy...
分类:
Web程序 时间:
2014-11-15 17:02:58
阅读次数:
221
1.使用Oracle存储过程查询结果集:网上写的都是他妈的扯淡!其实一句话就行了,你只要返回一个游标就OK了。具体代码如下:CREATE OR REPLACE PROCEDURE PR_ORDER_LIST( ORDER_ID VARCHAR2, BEGINDATE VARCHAR2, ...
分类:
数据库 时间:
2014-11-15 17:02:11
阅读次数:
249
ROW_NUMBER() OVER 排序函数 select ROW_NUMBER() OVER (PARTITION BY guide_id ORDER BY pic_sort) as rowid,pic_id,guide_id from [D_Guides_PIC]ROW_NUMBER()从1开始...
分类:
编程语言 时间:
2014-11-15 16:40:47
阅读次数:
132
控制器继承IndexAction.class.php控制器代码CateAction.class.phpfield("id,name,pid,path,concat(path,'-',id) as bpath")->order('bpath')->select();foreach($list as $...
分类:
数据库 时间:
2014-11-15 12:43:11
阅读次数:
207
这次相对来讲复杂点,题目如下:
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:27:53
阅读次数:
174
这次相对来讲复杂点,题目如下: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:23:35
阅读次数:
192
基本步骤是1.from2.join on3.where4.group by5.having6.order by7.select8.distinct ,sum,...9.limitjoin table 一定要有索引不然就是笛卡尔积了。inner join 的特别正确来讲 mysql 会先base on...
分类:
数据库 时间:
2014-11-14 22:30:14
阅读次数:
334
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2014-11-14 19:45:31
阅读次数:
127
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of...
分类:
其他好文 时间:
2014-11-14 17:50:06
阅读次数:
137
所用插件:TCODF//导出pdf public function export_pdf($order_sn){ require_once(FCPATH .'../shared/plugin/tcpdf/tcpdf.php'); $pdf = new TCPDF(PDF_PAGE_ORI...
分类:
Web程序 时间:
2014-11-14 17:22:04
阅读次数:
212