linux 中对 mysql 数据表的基本命令

显示数据表的结构

describe 表名;

 

建表

use 库名;

create table 表名(字段设定列表);

 

将表中记录清空

delete from 表名;

 

删表

drop table 表名

posted @ 2018-10-09 20:30  萧韶九成  阅读(611)  评论(0编辑  收藏  举报