第二章    使用实例
 
1.搭建测试数据库
 1 -- 创建库
 2 CREATE DATABASE mp;
 3 -- 使用库
 4 USE mp;
 5 -- 创建表
 6 CREATE TABLE tbl_employee(
 7 id INT(11) PRIMARY KEY AUTO_INCREMENT, last_name VARCHAR(50),
 8 email VARCHAR(50),
 9 gender CHAR(1),
10 age int );
11 INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('Tom','tom@atguigu.com',1,22); INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('Jerry','jerry@atguigu.com',0,25); INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('Black','black@atguigu.com',1,30); INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('White','white@atguigu.com',0,35);
View Code

2.搭建成功后

相关文章:

  • 2022-02-11
  • 2022-12-23
  • 2021-04-04
  • 2021-12-04
  • 2021-12-15
  • 2021-05-03
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2021-09-16
  • 2022-01-26
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案