MySQL使用

1. 连接MySQL 连接数据库 mysql -u root -p Enter password:root 2. 数据库 显示所有数据库 show databases; 选择数据库 use test; 显示所有表 show tables; 显示表...
1. 连接MySQL
连接数据库
mysql -u root -p
Enter password:root

2. 数据库
显示所有数据库
show databases;

选择数据库
use test;

显示所有表
show tables;

显示表中所有列
show columns from orders;
describe orders;

原文出处:http://andrew7676.iteye.com/blog/2430183

  • 发表于 2018-09-17 23:43
  • 阅读 ( 299 )
  • 分类:网络文章

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除