摘要: 原文: select id,rank() over (order by id) as seq,sum(a) as sm,count(*) as cnt from emp 整理后: select id, rank() over order by id as seq, sum(a) as sm, cou 阅读全文
posted @ 2021-10-28 22:45 逆火狂飙 阅读(216) 评论(0) 推荐(0)
摘要: 设置序号: th:text="${status.index+1}" 设置td的间隔色: th:style="'background-color:'+(${status.odd}?'#fff':'#f5f2eb')" 代码: <tbody> <tr th:each="reputaton,status: 阅读全文
posted @ 2021-10-28 22:21 逆火狂飙 阅读(2158) 评论(0) 推荐(0)
摘要: <tbody> <tr th:each="reputaton,status:${rptns}"> <td th:text="${status.index+1}"></td> <td th:text="${reputaton.id}"></td> <td th:text="${reputaton.de 阅读全文
posted @ 2021-10-28 22:05 逆火狂飙 阅读(442) 评论(0) 推荐(0)
摘要: 第一种方式:直接将SQL语句写在接口类里,如: @Mapper public interface UserMapper { ... @Select(" select * from mc_user where name=#{name} and pswd=#{pswd} ") User findByNa 阅读全文
posted @ 2021-10-28 21:27 逆火狂飙 阅读(290) 评论(0) 推荐(0)
摘要: SQL: select count(*) from emp4 where regexp_like(name,'^\d+$'); 关键函数: regexp_like(column_name,'^\d+$')测试语句: create table emp4( name varchar2(10) not n 阅读全文
posted @ 2021-10-28 21:04 逆火狂飙 阅读(115) 评论(0) 推荐(0)
生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东