上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 203 下一页
摘要: 原文: 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)
摘要: 表定义完了后给字段加约束比较常见,毕竟变化是唯一不变的。 1.加主键 alter table table_name add primary key(id); 2.加唯一性约束 alter table table_name add unique(code); 3.给number类型字段status加输 阅读全文
posted @ 2021-10-27 21:16 逆火狂飙 阅读(207) 评论(1) 推荐(0)
摘要: SQL:select column_name,data_type from all_tab_columns where table_name=upper('table_name'); 执行: SQL> column column_name format a30; SQL> column data_t 阅读全文
posted @ 2021-10-26 06:26 逆火狂飙 阅读(1850) 评论(0) 推荐(0)
摘要: return new ModelAndView("redirect:[MappingPath]"); 或 return "redirect:[MappingPath]"; 比如页面是 aPage.html,则重定向为 return new ModelAndView("redirect:aPage") 阅读全文
posted @ 2021-10-24 15:44 逆火狂飙 阅读(2144) 评论(0) 推荐(0)
摘要: 用Html5/Canvas绘制蓝红白三色圆盘。 阅读全文
posted @ 2021-10-24 12:23 逆火狂飙 阅读(146) 评论(0) 推荐(0)
摘要: 后端代码: List<String> ls=starService.getAllFamousNames(); mav.addObject("famousNames", ls); 前端代码: <ol> <li th:each="name:${famousNames}"> <span th:text=" 阅读全文
posted @ 2021-10-23 20:54 逆火狂飙 阅读(494) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 203 下一页
生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东