首页 > 数据库技术 > 详细

MySQL 常用命令

时间:2016-01-22 13:59:40      阅读:135      评论:0      收藏:0      [点我收藏+]

1.    mysqld -install;                //装载MySQL
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 常用命令

原文:http://www.cnblogs.com/mypsq/p/5150784.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!