MySQL的基本使用命令

JavaMySQL的常用命令                                                                                                                

  MySQL服务的启动和静止

1、net stop mysql

2、net stsrt mysql

  操作数据库

(1)显示数据库列表

Show databases

(2)显示数据库中的数据表

1 use 库名

2 tables

(3)显示数据表的结构

Describe 表名

(4)建库与删库

1 create database 库名 (character set utf8)

2 drop database 库名;

建表与删表

1use库名

2create table 表名(字段列表)

3drop table 表名

清空表中记录

1delete form 表名

显示表中的记录

Select *form 表名

往表中加入记录

Insert into 表名 values(字段列表)

 【MySQL常用命令大全(完整)_shiGXW的博客-CSDN博客_mysql命令大全】https://blog.csdn.net/weixin_44870139/article/details/105555238

    

posted @ 2021-11-25 20:42  清梦韶华  阅读(85)  评论(0编辑  收藏  举报