MySQL数据库操作基础

连接数据库 mysql -h 127.0.0.1 -u root -p 退出数据库 exit; 列出数据库 show databases; 列出表 show tables; 新建数据库 CREATE DATABASE 数据库名; 使用数据库 use 数据库名; 创建表 create table offices(officeCode varchar(10),city varchar(10),phon
相关文章
相关标签/搜索