mysql>use db1; #指定要操作的数据库名称;
mysql>create tables tab1; #在db1数据库中创建表tab1;
mysql>show tables; #查看db1数据库包含的数有数据表;
mysql>drop table tab1; #删除db1数据库中的表tab1;
mysql>desc tab1; #查看tab1表的结构;
mysql>select * from tabl; #查看表tab1的所有项;
mysql>use db1; #指定要操作的数据库名称;
mysql>create tables tab1; #在db1数据库中创建表tab1;
mysql>show tables; #查看db1数据库包含的数有数据表;
mysql>drop table tab1; #删除db1数据库中的表tab1;
mysql>desc tab1; #查看tab1表的结构;
mysql>select * from tabl; #查看表tab1的所有项;