6、删库和删表:
格式:drop database 库名; drop table 表名;
mysql> drop database testdb;
Query OK, 1 row affected (0.09 sec)
mysql> drop table user;
Query OK, 0 rows affected (0.06 sec)
7、删除表中记录清空:
格式:delete from 表名 where 条件;
8、查询表中的记录:
格式:select * from 表名 where 条件;
三、新建库表实例
任务:在数据库testdb中新建一张user表,在其中插入几条记录,然后查询user表。