数据库 方面 1、Oracle 数据库分为:内连接和外连接。 内连接:一般就是等值连连接。 例如: select * from A a ,B b where A.c = B.c; 或者: select * from A inner join B on A.c = B.c; 这两种查询方式我认为是等效 ...
分类:
编程语言 时间:
2018-11-13 15:17:30
阅读次数:
192
ocp提纲 Oracle SQL 基础 ◆ 标准SQL语言介绍◆ Oracle数据库数据组织形式◆ DDL语句创建表及修改表结构◆ Select语句检索和限制表中数据◆ 从多表中检索数据(连接查询)◆ SQL函数:单行函数、多行函数(分组函数)◆ 对表中数据集合运算(集合查询)◆ DML语句操纵数据 ...
分类:
数据库 时间:
2018-11-12 14:54:00
阅读次数:
160
本节重点: 多表连接查询 符合条件连接查询 子查询 准备工作:准备两张表,部门表(department)、员工表(employee) create table department( id int, name varchar(20) ); create table employee( id int ...
分类:
其他好文 时间:
2018-11-10 15:31:00
阅读次数:
201
-- 连接查询 -- inner join ... on -- 两个表连接查询 select * from students inner join classes -- 查询能够对应班级的学生以及班级信息 select * from students inner join classes on st ...
分类:
数据库 时间:
2018-11-10 15:17:28
阅读次数:
226
一、连接查询 1.交叉连接 select * from 表1 cross join 表2 -->笛卡儿积 2.内连接 select * from 表1 inner join 表2 -->笛卡儿积 select * from 表1 join 表2 -->笛卡儿积 select * from 表1 in ...
分类:
数据库 时间:
2018-11-10 15:01:11
阅读次数:
223
1.one2many-多表连接查询 2.one2many-多表单独查询 3.one2many-多表单独查询2 4.many2one-多表单独查询 ...
分类:
其他好文 时间:
2018-11-06 00:49:49
阅读次数:
155
1.mysql怎样调优: 禁止使用select * ; 禁止使用in ,not in,or,having,使用exists 和not exists代替 避免使用 union ,使用union all来代替 避免使用两端模糊查询 like '%###%' 尽量少用连接查询 join 尽量使用join代 ...
分类:
编程语言 时间:
2018-11-03 21:08:40
阅读次数:
168