mysql常用命令:

mysql -uroot -p; 进入mysql
mysql命令行

show databases; 查看数据库:注意后面假如s
mysql命令行
create databasename;创建数据库
use databasename;选择数据库
drop database name;直接删除数据库

show tables;查看数据表
mysql命令行

创建数据表如:tablename:AAA

create table AAA(
id int(10) not null primary key auto_increment,
name char(20) not null
);

删除数据表
drop tablename;

数据表添加数据
mysql命令行

数据表查询数据

mysql命令行
[http://c.biancheng.net/cpp/u/mysql_ml/]

相关文章:

  • 2021-09-02
  • 2021-11-28
  • 2022-12-23
  • 2021-07-29
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2021-10-28
  • 2022-02-23
  • 2021-10-09
  • 2021-11-07
  • 2022-01-01
  • 2022-01-22
  • 2022-12-23
相关资源
相似解决方案