mysql 中常用的基本操作

1.连接数据库:mysql -u root -p;

2.create database "数据库名字";

3.使用数据库:use "数据库名字"

4.退出数据库:exit;

5.查看数据库:"show databases";

6.查看库中的数据表:"show tables";

7.查看表中的数据:"select * from 表名";

8.删除数据库:"drop table 表名";

9.向表中插入数据:‘insert into’;

10.删除其中的一条数据:‘delete * from  表名 where 条件’;

11插入  :‘insert into’;

12:修改:‘updata’;

原文地址:https://www.cnblogs.com/xinkun/p/7825203.html