Mysql简单入门教程

Mysql简单入门教程

4 (28人评价)
  • 课时:(22)

  • 学员:(1391)

  • 浏览:(67603)

  • 加入课程

第8课 视图的笔记

相关课时:
第8课 视图2014-01-06
笔记详情:

 select select_priv, Create_view_priv from mysql.user where user='root';

 create table department(
 d_id int not null primary key auto_increment,
 d_name varchar(20),
 function varchar(50),
 address varchar(50),
 index index_dn(d_name)
 );

create table worker(
num int(10) not null primary key,
d_id int(4),
name varchar(20) not null,
sex varchar(4) not null,
birthday datetime,
homeaddress varchar(50),index index_dn(d_id)
);

select * from information_schema.views\G

 create or replace algorithm=temptable
 view department_view1(department,function,location)
 as select d_name,function,address from department;

1 1

你感兴趣的课程

2万+浏览/ 158学员/ 5评分
免费
2万+浏览/ 421学员/ 0评分
免费
1万+浏览/ 390学员/ 4.6评分
免费