摘要:
1、postgresql 查询每组第一个 ROW_NUMBER () OVER (partition by 字段 ORDER BY 字段 DESC) 写法:SELECT ROW_NUMBER () OVER (partition by 字段 ORDER BY 字段 DESC) AS 字段别名 FRO 阅读全文
摘要:
1、引入hibernate的jar包和数据库驱动包 2、src添加hibernate.cfg.xml(hibernate配置文件) 3、数据库编写pojo public class Test { public static void main(String[] args) { /** * 启动hib 阅读全文
摘要:
ToolsUtil //每页显示的记录数 public static final int NUM_PER_PAGE=5; /* * java.util.Date转java.sql.Date */ public static Date utilDateToSqlDate(java.util.Date 阅读全文