当前位置:Gxlcms > 数据库问题 > MySQL 常用命令

MySQL 常用命令

时间:2021-07-01 10:21:17 帮助过:1人阅读


2.    net start mysql;                //启动MySQL
3.    create database student;        //创建数据库
4.    show databases;                 //查看所有数据库
5.    use student;                    //使用当前数据库
6.    describe student;                 //查看表头详情信息
7.    mysql> create table students        //创建数据表
        -> (
        -> id int unsigned not null auto_increment primary key,
        -> name char(8) not null,
        -> set char(4) not null,
        -> age tinyint unsigned not null,
        -> tel char(13) null default "-");
8.    show tables;                    //查看所有表

MySQL 常用命令

标签:

人气教程排行