Intrepid2012的博客
Intrepid2012 · 共 61 篇文章
how to decide if the external js is loaded
try to figure out if the external js lib is loaded: <script language="javascript"> var len = $('script[src="<external JS>"]').length; if (len === 0) { $.getScript('<external JS>'); } </script>
2013-10-18 04:04 · jquery · 评论(0)
<xsl:apply-templates> vs <xsl:call-template/>
On a very basic level, you use <xsl:apply-templates> when you want to let the processor handle nodes automatically, and you use <xsl:call-template/> when you want finer control over the processing. So if you have: <foo> <boo>World</boo> <bar>Hello</bar> </foo> And you have the following XSLT: <xsl:…
2013-10-12 00:20 · xsl · 评论(0)
Query对象和DOM对象的相互转换 转贴
Query对象和DOM对象的相互转换 作者:sagahu@163.com 日期:2012-01-04 jQuery对象是jQuery库封装DOM对象而成的javascript对象,是jQuery库特有的。jQuery对象可以有其对应的DOM对象,但是与其DOM对象有很大的区别。 jQuery对象可以使用jQuery库的任何方法,而不能使用相应DOM对象的任何方法。当然DOM对象也不能使用jQuery库里的方法。例如: $("#foo").html(); // 获取id为foo的元素内的html代码。html()是jQuery里的方法。 这段代码等同于: document.getElement…
2013-09-27 19:17 · jquery · 评论(0)
dblink 阀值
调整方法: alter system set open_links=10 scope=spfile; shutdown immediate; startup
2013-09-06 04:53 · oracle · 评论(0)
查看 运行中的存储过程
1、查看ORACLE中正在运行的存储过程 SQL> select owner,name from v$db_object_cache where type like '%PROCE%' and locks >0 and pins >0; OWNER NAME -------- ------ SYS FULL_SCAN_BERTHDATAENTITY SQL> select * from v$access o where o.OBJECT like 'FULL_SCAN_BERTHDATAENTITY%'; SID OWNER OBJECT TYPE ---------- ------- --…
2013-08-29 23:45 · oracle · 评论(0)
Oracle使用虚拟表dual一次插入多条记录
BEGIN generate_tmpsht; execute immediate 'insert into SHTSUPPLIERRATE (supplierid,supplierrate,supplierdialcode) select :var_TMPSupplier1ID,:var_TMPSupplier1Rate,:var_TMPSupplier1DialCode from dual union all select :var_TMPSupplier2ID,:var_TMPSupplier2Rate,:var_TMPSupplier2DialCode from dual union …
2013-03-13 02:29 · oracle · 评论(0)
oracle seconds to hh:mm:ss format
SELECT TO_CHAR(TRUNC(x/3600),'FM9900')||':'|| TO_CHAR(TRUNC(MOD(x,3600)/60),'FM00')||':'|| TO_CHAR(MOD(x,60),'FM00')FROM DUAL
2013-03-13 02:26 · oracle · 评论(0)
listener.ora、sqlnet.ora、tnsnames.ora
oracle网络配置 三个配置文件 listener.ora、sqlnet.ora、tnsnames.ora ,都是放在$ORACLE_HOME/network/admin目录下。 英文说明: The sqlnet.ora is an optional file expressing more parameters about the connection (eg: the trace level for debugging, the types of authentication you would like to support and so on). It may be found o…
2013-03-06 04:57 · oracle · 评论(0)
使用oracle的rownum
本人最近在使用oracle的rownum實現分頁顯示的時候,對rownum做了進一步的分析和研究。現歸納如下,希望能給大家帶來收穫。 對於rownum來說它是oracle系統順序分配爲從查詢返回的行的編號,返回的第一行分配的是1,第二行是2,依此類推,這個僞字段可以用於限制查詢返回的總行數,而且rownum不能以任何錶的名稱作爲前綴。 舉例說明: 例如表:student(學生)表,表結構爲: ID char(6) --學號 name VARCHAR2(10) --姓名 create table student (ID char(6), name VARCHAR2(100)); insert …
2013-02-26 00:47 · oracle · 评论(0)
How to start FTP in Redhat 9.0
How to start FTP in Redhat 9.0 Redhat 9 comes with the ftp server vsftpd . This is installed by default, but does not run at boot up. To run vsftpd type: /etc/init.d/vsftpd start Login to test it by typing ftp localhost at the prompt, and if you get the following, vsftpd is running. Connected to lo…
2013-02-26 00:26 · linux · 评论(0)
oracle ratio_to_report
Ratio_to_report函数 Syntax 分析函数RATIO_TO_REPORT 用来计算当前记录的指标expr占开窗函数over中包含记录的所有同一指标的百分比. 这里如果开窗函数的统计结果为null或者为0,就是说占用比率的被除数为0或者为null, 则得到的结果也为0. 开窗条件query_partition_clause决定被除数的值, 如果用户忽略了这个条件, 则计算查询结果中所有记录的汇总值. 用户不能使用其他分析函数或者ratio_to_report作为分析函数ratio_to_report的参数expr, 也就是说这个函数不能循环使用. 但我们可以使用其他普通函数作为…
2013-02-20 03:20 · oracle · 评论(0)
css clear 运用
控制相邻的浮动BOX的排列——clear 功能说明:控制相邻的浮动BOX的排列。 可 取 值:none|left|right|both|inherit 初 始 值:none 应 用 到:块级元素。 可否继承:否。 详细解释: ① 当clear属性应用于非浮动的块级BOX时,属性值的含义如下: left:生成的BOX的顶边距将增加,直到它的顶部边缘出现在文档中之前元素产生的任何向左浮动的BOX的底外边缘之下。 right:生成的BOX的顶边距将增加,直到它的顶部边缘出现在文档中之前元素产生的任何向右浮动的BOX的底外边缘之下。 both:生成的BOX将移到源文档中之前元素产生的浮动BOX之下。…
2013-01-26 03:56 · HTML+CSS · 评论(0)
Oracle 获取本周、本月、本季、本年的第一天和最后一天
--取得当天0时0分0秒 select TRUNC(SYSDATE) FROM dual; --取得当天23时59分59秒(在当天0时0分0秒的基础上加1天后再减1秒) SELECT TRUNC(SYSDATE)+1-1/86400 FROM dual; --取得当前日期是一个星期中的第几天,注意:星期日是第一天 select to_char(sysdate,'D'),to_char(sysdate,'DAY') from dual; --在oracle中如何得到当天月份的第一天和最后一天 select to_char(sysdate,'yyyy-mm')||'-01' firstday,t…
2013-01-15 05:08 · oracle · 评论(0)
package UTL_MAIL - 04042
Connect as SYS as sysdba: SQL> @?/rdbms/admin/utlmail .... SQL> @?/rdbms/admin/prvtmail.plb
2012-12-14 03:53 · oracle · 评论(0)
oracle常用的时间函数
SELECT SYSDATE FROM DUAL 取当前系统时间 Select trunc(sysdate) from dual 取当前日期 Select trunc(sysdate,’MM’) from dual 取当前月的第一天 Select trunc(sysdate,’YYYY’) from dual取当年的元旦 Select to_char(sysdate,’ss’) from dual取当前时间秒部分 Select to_char(sysdate,’mi’) from dual取当前时间分钟部分 Select to_char(sysdate,’HH24’) from dual取当…
2012-12-14 03:09 · oracle · 评论(0)