passer1991

2013年5月18日

我的java 的实用代码

摘要: /** * 得到实体对应的表名.Annotation方式 * @param c * @return */ public static String getTableName(Class c) { Table annotation = (Table) c.getAnnotation(Table.class); String tableName=""; if(annotation==null) { tableName=c.getSimpleName(); }else { tableName=annotation.name(); ... 阅读全文

posted @ 2013-05-18 23:19 passer1991 阅读(123) 评论(0) 推荐(0) 编辑

oracle 的分页

摘要: select * from (select rownum rn , t1.* from ( select * from emp order by empno ) t1 where rownum =5 ;select * from emp where rowid in (select rid from (select rid from (select rownum rn,rid from (select rowid rid ,empno from emp) where rownum =5)) order by empno; 阅读全文

posted @ 2013-05-18 20:55 passer1991 阅读(95) 评论(0) 推荐(0) 编辑

导航