建立資料庫
1 | create database demo_db; |
- create table創建單一table
- show tables查看所有tables
- show columns tables from tableName查看單一table
- desc tableName 查看單一table
- drop table tableName刪除單一table
創建table
1 | //使用資料庫 |
查看剛剛新增的table
1 | //指令 |
show tables 查看所有tables
1 | show tables; |
show columns tables from tableName(查看單一table)
1 | show columns from person; |
drop table tableName(刪除table)
1 | show tables; |