MySQL-库和表的管理-案例讲解
案例1

#创建表
use books
create table dept1(
   id int(7),
   name varchar(25)
);
select * from `dept1`

2.将表departments中的数据插入新表dept2中
#2.将表departments中的数据插入新表dept2中
use `books`;
create table dept2
select `department_id`,`department_name`
from `myemployees`.`departments`;

案例3

案例4-6

案例7-9

    转载请注明出处,欢迎讨论和交流!

                
            
        
浙公网安备 33010602011771号