[url]http://hi.baidu.com/seething/item/bdc554cb6c685a1050505869[/url]
mysql> show databases;
//察看数据库列表
11 rows in set (0.00 sec)
mysql> use ertlzw;
//显示ertlzw库中的数据列表
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
//显示ertlzw库中的数据列表
8 rows in set (0.00 sec)
mysql> describe article;
//显示ertlzw库中的数据列表中的article表结构
8 rows in set (0.00 sec)
mysql> use ertlzw;
//显示ertlzw库中的内容
Database changed
mysql> select * from article;
Empty set (0.00 sec)
mysql> select * from admintable;
//显示ertlzw库中的表admintable所有内容
1 row in set (0.01 sec)
mysql>
作者: DareGo
mysql> show databases;
//察看数据库列表
11 rows in set (0.00 sec)
mysql> use ertlzw;
//显示ertlzw库中的数据列表
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
//显示ertlzw库中的数据列表
8 rows in set (0.00 sec)
mysql> describe article;
//显示ertlzw库中的数据列表中的article表结构
8 rows in set (0.00 sec)
mysql> use ertlzw;
//显示ertlzw库中的内容
Database changed
mysql> select * from article;
Empty set (0.00 sec)
mysql> select * from admintable;
//显示ertlzw库中的表admintable所有内容
1 row in set (0.01 sec)
mysql>
作者: DareGo
本文详细介绍了使用MySQL进行数据库操作和查询的过程,包括查看数据库列表、切换数据库、展示数据库中的表和内容,以及如何从特定表中获取数据。通过实例演示了如何在数据库环境中进行高效的数据管理。
1389

被折叠的 条评论
为什么被折叠?



