摘要: 【青橙商城 管理后台开发】3. web模块搭建 1.创建qingcheng_web_manager模块 1. pom.xml 2. webapp/WEB INF/web.xml 3. resources下创建dubbo.properties 阅读全文
posted @ 2019-09-18 19:48 Sm1lence 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 【青橙商城 管理后台开发】2. 商品服务模块搭建 1. 服务层模块 商品 1. pom.xml 2. 创建webapp/WEB INF/web.xml 3. resources下创建dubbo.properties 4. resources下创建db.properties 阅读全文
posted @ 2019-09-18 19:37 Sm1lence 阅读(905) 评论(0) 推荐(0) 编辑
摘要: 【青橙商城 管理后台开发】1.公共模块搭建 1. 工程搭建 1.创建父工程qingcheng_parent ​ 父工程:qingcheng_parent pom.xml: 2.创建公共模块qingcheng_common,pom.xml qingcheng_common pom.xml: 在 qin 阅读全文
posted @ 2019-09-18 08:57 Sm1lence 阅读(526) 评论(1) 推荐(0) 编辑
摘要: Oracle 对象 视图 视图概念 ​ 视图就是提供一个查询的窗口,所有的数据来自于原表 1. 创建视图【必须有dba权限】 2. 视图的作用 1. 视图可以屏蔽掉一些铭感字段 2. 保证总部和分部数据及时统一 Oracle 对象 索引 索引的概念 ​ 索引就是在表的列上构建一个二叉树,达到大幅度提 阅读全文
posted @ 2019-08-29 20:00 Sm1lence 阅读(237) 评论(0) 推荐(0) 编辑
摘要: --Oracle中的分页 --rownum行号:当我们做select操作时候 --每查询出一行记录,就在该行加上一个行号 --行号从1开始,一次递增,不能跳着走 emp表工资倒叙排列后,每页5条记录。查询第二页 排序操作会影响rownum的顺序 如果涉及到排序,但是还要用rownum的话。使用嵌套查询 rownum行号不能写大于一个正数 select * from( select rownum r 阅读全文
posted @ 2019-08-29 10:55 Sm1lence 阅读(215) 评论(0) 推荐(0) 编辑
摘要: --子查询 --子查询返回一个值 --查询出工资和scott一样的员工信息 select * from emp where sal in (select sal from emp where ename = 'SCOTT'); --子查询返回一个集合 --查询出工资和10号部门任意员工一样的员工信息 select * from emp where sal in (select sal from e 阅读全文
posted @ 2019-08-29 10:26 Sm1lence 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 查询出员工姓名,员工领导姓名 结果 自连接:站在不同角度把一张表看成多张表 查询出员工姓名,员工部门名称,员工领导姓名,领导部门名称 结果: 阅读全文
posted @ 2019-08-29 09:00 Sm1lence 阅读(863) 评论(0) 推荐(0) 编辑
摘要: --笛卡尔积 select * from emp e,dept d; --等值连接 select * from emp e,dept d where e.deptno=d.deptno --内连接 select * from emp e inner join dept d on e.deptno=d.deptno; --查询出所有部门,以及部门下所有员工【外连接】 select * from em 阅读全文
posted @ 2019-08-28 22:03 Sm1lence 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 分组查询中,出现在 group by 后面的原始列,才能出现在 select 后面 没有出现在 group by 后面的原始列 ,想在 select 后边出现必须加上聚合函数 所有条件都不能使用别名来判断 where 是过滤分组前的数据,having 是过滤分组后的数据 where 必须在 grou 阅读全文
posted @ 2019-08-28 21:52 Sm1lence 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 多行函数【聚合函数】,作用于多行,返回一个值 阅读全文
posted @ 2019-08-28 21:37 Sm1lence 阅读(437) 评论(0) 推荐(0) 编辑