摘要:
1、升序排列 create index ix_table1 on table1 (column1,column2); select column1,column2 from table1 order by column1,column2; 2、降序排列 create index ix_table1 阅读全文
摘要:
原因:因为操作系统环境不同,所以换行符也不同,要查看数据文件的换行符解决方法:1、如果是苹果系统类的数据文件,则改为:RECORDS DELIMITED BY 0X'0D'2、如果是window系统类的数据文件,则改为:RECORDS DELIMITED BY 0X'0D0A'3、如果是unix系统... 阅读全文
摘要:
Sole purpose of using concurrency is to produce scalable and faster program. But always remember, speed comes after correctness. Your Java program mus 阅读全文
摘要:
1、使用内部类,而且它是线程安全的,而且只创建一次:/**Prof Bill Pugh, University of Maryland, was the main force behind java memorymodel changes. His principle Initialization-... 阅读全文
摘要:
1、如果order by columnA,那么在where查询条件中添加条件columnA=value,则oracle内部会过滤order by排序,直接用索引(可以通过execution plan查看)。2、如果order by columnA,columnB,那么在where查询条件中添加条件c... 阅读全文