数据库学习:MySQL数据库Join详解_MySQL数据库_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

数据库学习:MySQL数据库 Join详解

作者:黑客防线网安MYSQL维护基地 来源:黑客防线网安MYSQL维护基地 浏览次数:0

本篇关键词:数据库详解学习null
黑客防线网安网讯:  还是先 Create table 吧    create table emp(  id int not null primary key,  name varchar(10)  );    create table emp_dept(  dept_id varchar(4) not null,  e...
  还是先 Create table 吧
  
  create table emp(
  id int not null primary key,
  name varchar(10)
  );
  
  create table emp_dept(
  dept_id varchar(4) not null,
  emp_id int not null,
  emp_name varchar(10),
  primary key (dept_id,emp_id));
  
  insert into emp() values
  (1,"Dennis-1"),
  (2,"Dennis-2"),
  (3,"Dennis-3"),
  (4,"Dennis-4"),
  (5,"Dennis-5"),
  (6,"Dennis-6"),
  (7,"Dennis-7"),
  (8,"Dennis-8"),
  (9,"Dennis-9"),
  (10,"Dennis-10");
  
  insert into emp_dept() values
  ("R&D",1,"Dennis-1"),
  ("DEv",2,"Dennis-2"),
  ("R&D",3,"Dennis-3"),
  ("Test",4,"Dennis-4"),
  ("Test",5,"Dennis-5");
    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-8176-1.html
网站维护教程更新时间:2012-03-20 04:49:51  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer