- 浏览: 148332 次
- 性别:
- 来自: 杭州
最新评论
-
luoxun11:
其实这个问题的本质是用##包围变量的时候ibatis会采用St ...
iBATIS #和$
文章列表
Linux下的Memcache安装
最近在研究怎么让Discuz!去应用Memcache去做一些事情,记录下Memcache安装的过程。
Linux下Memcache服务器端的安装服务器端主要是安装memcache服务器端,目前的最新版本是 memcached-1.3.0 。下载:http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz另外,Memcache用到了libevent这个库用于Socket的处理,所以还需要安装libevent,libevent的最新版本是libevent-1.3。(如果你的系统已经安装了libevent, ...
- 2008-12-02 17:17
- 浏览 1060
- 评论(0)
struts标签使用举例-logic
1. logic:empty 该标签是用来判断是否为空的。如果为空,该标签体中嵌入的内容就会被处理。该标签用于以下情况:
1)当Java对象为null时; 2)当String对象为"&quo ...
- 2008-10-24 00:14
- 浏览 5685
- 评论(0)
加入<%@ page isELIgnored="false"%>即可
- 2008-10-23 23:28
- 浏览 820
- 评论(0)
SELECT TYPEID from tableName connect by PARENTID = prior TYPEID start with PARENTID =? )typeid是主键,tableName是表名,parentid是父id,"=prior"是固定写法,start with表示从哪里开始,可以是typeid或parentid等。
- 2008-10-10 08:36
- 浏览 2005
- 评论(0)
PLSQL执行sql脚本命令:如@D:\filedir\filename.sql
oracle删除重复记录:delete from tbl a where rowid not in (select max(b.rowid) from tbl b where a.col1=b.col1 and a.col2 = b.col2)
- 2008-10-10 08:36
- 浏览 1383
- 评论(0)
--v_returncode是out参数declare v_out number;beginproc_GetAwardPrize(v_productid => 364,v_userid => 3,v_awardtype => 1,v_returncode => v_out); DBMS_OUTPUT.PUT_LINE('v_out='||v_out);end;
以下是存储过程:create or replace procedure proc_GetAwardPrize(v_productid number,v_userid number,v_awardtype n ...
- 2008-10-10 08:34
- 浏览 6947
- 评论(0)
<SCRIPT LANGUAGE="JavaScript">//取生肖, 参数必须是四位的年 function getshengxiao(yyyy){ var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊']; //document.all.test.value = arr[yyyy%12]; return arr[yyyy%12];}
// 取星座, 参数分别是 月份和日期/*魔羯座(12/22 - 1/19)、水瓶座(1/20 - 2/18)、双鱼座(2/19 - 3/20)、 ...
- 2008-10-10 08:32
- 浏览 1059
- 评论(0)
function cc6_readCookie(name){ var cookieValue = ""; var search = name + "="; if(document.cookie.length > 0){ offset = document.cookie.indexOf(search); if (offset != -1){ offset += search.length; end = document.cookie.indexOf(";", offset); if ...
- 2008-10-10 08:31
- 浏览 954
- 评论(0)