上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页

2012年7月26日

超链接

摘要: 1.在原窗口打开链接<inputtype="button" value="查询"onClick="location='pageUtil/getPage.action'"> <buttononClick="location.href='pageUtil/getPage.action'" 查询</button> <formaction="pageUtil/getPage.action"> <inputtype=" 阅读全文

posted @ 2012-07-26 15:12 lovebeauty 阅读(213) 评论(0) 推荐(0) 编辑

2012年7月5日

oracle - 关键字

摘要: INTERSECT 和 UNION 指令类似, INTERSECT 也是对两个 SQL 语句所产生的结果做处理的。不同的地方是, UNION 基本上是一个 OR (如果这个值存在于第一句或是第二句,它就会被选出),而 INTERSECT 则比较像 AND ( 这个值要存在于第一句和第二句才会被选出)。 UNION 是联集,而 INTERSECT 是交集INTERSECT 的语法如下: [SQL语句 1]INTERSECT[SQL语句 2] 假设我们有以下的两个表格, A表格Place Price Date Los Angeles $1500 Jan-05-1999 San Di... 阅读全文

posted @ 2012-07-05 16:32 lovebeauty 阅读(204) 评论(0) 推荐(0) 编辑

2012年7月4日

oracle - 函数

摘要: 1.去掉空格,替换 replace REPLACE (’CAT CALL’, ‘C’) ==> ‘AT ALL’ REPLACE (’Zero defects in period 99 reached 99%!’, ‘99′, ‘100′) ==> ‘Zero defects in period 1 阅读全文

posted @ 2012-07-04 11:06 lovebeauty 阅读(1795) 评论(0) 推荐(0) 编辑

2012年6月26日

oracle - SQL优化

摘要: 优化规则:1.CBO模式下,表从右到左查询,右边第一个为基础表选择行数的少作为基础表,三个及三个以上的表,需要选择交叉表(连接另外两个表的表)作为基础表,2.数据量大的时候,使用exists 而非 in3.where自下而上的解析where子句,过滤数据记录的条件写在where字句的尾部,以便在过滤... 阅读全文

posted @ 2012-06-26 15:54 lovebeauty 阅读(357) 评论(0) 推荐(0) 编辑

下拉列表框select常用点

摘要: $("#organizationCode").val($(this).val());// $("#organizationName").val($("#" + this +" option:selected").text());错误的$("#organizationName").val($(this... 阅读全文

posted @ 2012-06-26 11:47 lovebeauty 阅读(400) 评论(0) 推荐(0) 编辑

复选框checkbox常用点

摘要: //取得checkbox的选择值View Code 1 var b=document.getElementById("mobileflag").checked;2 if(b == true) {3 b = "Y";4 }else {5 b = "N";6 }取得全部选中的值:View Code var bol = document.getElementsByName("product");var arr = new Array();for(int i=0; i var list = document.getElem 阅读全文

posted @ 2012-06-26 09:46 lovebeauty 阅读(260) 评论(0) 推荐(0) 编辑

2012年6月20日

oracle - sql中很有用小知识点

摘要: 在Oracle中,只有DML才会开启一个事务。也就是说Insert,Update,Delete这些都会开启一个事务,并且该事务在commit/rollback/ddl命令时会自动结束。1.获取特定数据的前几位select substr(recordid,1,2) from syscode where rownum < 5;2.获取指定条数的数据select recordid from syscode where rownum < 5;3.获取指定格式的ID function getsmssendid return varchar2 is v_getsmssendid smssend 阅读全文

posted @ 2012-06-20 23:31 lovebeauty 阅读(343) 评论(0) 推荐(0) 编辑

if then elsif与select case when

摘要: case whenView Code 1 select (case userid2 when 'CUS0000003017804' then3 '张三'4 when 'CUS0000003017805' then5 '李四'6 else7 '王五'8 end) userid from users a where loginname = 'xxx';View Code 1 select case 2 when userid ='CUS0000003017804' then 3 ' 阅读全文

posted @ 2012-06-20 11:44 lovebeauty 阅读(339) 评论(0) 推荐(0) 编辑

2012年6月1日

SQL exists与in

摘要: 对于in 和 exists的区别: 如果子查询得出的结果集记录较少,主查询中的表较大且又有索引时应该用in, 反之如果外层的主查询记录较少,子查询中的表大,又有索引时使用exists。其实我们区分in和exists主要是造成了驱动顺序的改变(这是性能变化 的关键),如果是exists,那么以外层表为 阅读全文

posted @ 2012-06-01 17:21 lovebeauty 阅读(228) 评论(0) 推荐(0) 编辑

connect by Nocycle Prior

摘要: select branchid from branch where parentbranchid='BRA0000000000001' order by branchid第一句只能查询出父节点是BRA0000000000001的所有子节点select br.branchid from Branch brstart with br.branchid = 'BRA0000000000001'connect by Nocycle Prior br.branchid = br.parentbranchid这一句能查出父节点是BRA0000000000001的所有子节点, 阅读全文

posted @ 2012-06-01 15:35 lovebeauty 阅读(9270) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页

导航