mysql登录:
mysql -uroot -p
登录后如下:
建立一个名为test的数据库存文件:
mysql>create database test;
结尾要有“;”
Query OK, 1 row affected (0.02 sec)
建立数据表:
mysql> creat table table1; |
删除表:
mysql> DROP TABLE 表名;
|
将表中记录清空:
mysql> DELETE FROM 表名;
mysql登录:
mysql -uroot -p
登录后如下:
建立一个名为test的数据库存文件:
mysql>create database test;
结尾要有“;”
Query OK, 1 row affected (0.02 sec)
mysql> creat table table1; |
mysql> DROP TABLE 表名;
|
mysql> DELETE FROM 表名;