摘要:
PL/SQL程序 一.定义 declare 说明部分 begin 语句序列(DML语句) exception 例外处理语句 end; 二. 变量和常量说明 a) 说明变量(char,varchar2,date,number,boolean,long) varl char(15); married b 阅读全文
摘要:
public class PropertiesUtil{ private static Properties properties; static{ InputStream in = null; try{ in = PropertiesUtil.class.getClassLoader().getR 阅读全文
摘要:
1.利用group by 去重复 2.可以利用下面的sql去重复,如下 1) select id,name,sex from (select a.*,row_number() over(partition by a.id,a.set order by name) su from test a ) w 阅读全文
摘要:
备注:转载 处理百万级以上的数据提高查询速度的方法: 1.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。 2.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 3.应尽量避免在 where 子句中对 阅读全文