一、介绍 首先先准备表 员工表和部门表 #建表 create table department( id int, name varchar(20) ); create table employee1( id int primary key auto_increment, name varchar(2 ...
分类:
其他好文 时间:
2018-10-22 01:13:53
阅读次数:
157
1.内链接查询 1.查询department表和employee表,d_id字段相等的数据 2.外连接查询 1.左连接查询:可以查询出表1的所指的所有记录,表2只能查询出匹配的记录 2.右连接查询:可以查询出表2的所有的字段,表1只能查询出匹配的记录 3.符合条件连接查询:在查询中,增加查询条件 3 ...
分类:
其他好文 时间:
2018-10-10 23:38:38
阅读次数:
147
一、准备表 #建表 create table department( id int, name varchar(20) ); create table employee( id int primary key auto_increment, name varchar(20), sex enum('m ...
分类:
数据库 时间:
2018-10-09 00:49:36
阅读次数:
150
"题目链接" Arctic Network Time Limit: 2 Seconds Memory Limit: 65536 KB The Department of National Defence (DND) wishes to connect several northern outpost ...
分类:
Web程序 时间:
2018-09-28 10:56:10
阅读次数:
168
多表查询 多表连接查询 符合条件连接查询 子查询 准备工作:准备两张表,部门表(department)、员工表(employee) create table department( id int, name varchar(20) ); create table employee( id int p ...
分类:
其他好文 时间:
2018-09-21 23:14:21
阅读次数:
196
恢复内容开始 主要内容 1 多表连接查询 语法: select 字段列表 from 表一 inner/left/right join 表二 on 表一.字段 = 表二.字段 内连接: 直连接匹配的行: select * from employee inner join department on e ...
分类:
其他好文 时间:
2018-09-20 22:19:11
阅读次数:
187
本节重点: 多表连接查询 符合条件连接查询 子查询 准备工作:准备两张表,部门表(department)、员工表(employee) ps:观察两张表,发现department表中id=203部门在employee中没有对应的员工,发现employee中id=6的员工在department表中没有对 ...
分类:
其他好文 时间:
2018-09-06 23:10:32
阅读次数:
184
Problem UVA208-Firetruck Accept:1733 Submit:14538 Time Limit: 3000 mSec Problem Description The Center City ?re department collaborates with the trans ...
分类:
其他好文 时间:
2018-09-01 12:16:36
阅读次数:
186
前期准备工作: 两张表:部门表(department),员工表(employee) create table department( id int, name varchar(20) ); create table employee( id int primary key auto_incremen ...
分类:
其他好文 时间:
2018-08-31 10:43:18
阅读次数:
149
class UserInfo(object): pass class Department(object): pass class StarkConfig(object): def __init__(self,num): self.num = num def changelist(self,requ ...
分类:
其他好文 时间:
2018-08-30 11:10:06
阅读次数:
181