1、创建数据库:

    1. create database mybatis_plus

    2、创建 User 表

    1. drop table if exists user;
    2. create table `user`(
    3. id bigint(20) not null comment '主键ID',
    4. name varchar(30) null default null comment '姓名',
    5. age int(11) null default null comment '年龄',
    6. email varchar(50) null default null comment '邮箱',
    7. primary key (id)
    8. )engine=innodb default charset=utf8;

    3、向表中添加数据:

    1. insert into user (id, name, age, email) values
    2. (1, 'Jone', 18, 'test1@baomidou.com'),
    3. (2, 'Jack', 20, 'test2@baomidou.com'),
    4. (3, 'Tom', 28, 'test3@baomidou.com'),
    5. (4, 'Sandy', 21, 'test4@baomidou.com'),
    6. (5, 'Billie', 24, 'test5@baomidou.com');