sql基础--怎样查询多列数据
2016-04-05 23:38
267 查看
select 指定列名,列名,列名 from 从表中
mysql> select id,price,name
from products;
+------+-------+--------------------+
| id | price | name |
+------+-------+--------------------+
| 1 | 3.49 | Bird bean bag toy |
| 2 | 3.49 | qunkanlu |
| 3 | 4.9 | qunkanlu 50 number |
| 1 | 5.9 | hongqi |
+------+-------+--------------------+
4 rows in set (0.00 sec)
mysql> select id,price,name
from products;
+------+-------+--------------------+
| id | price | name |
+------+-------+--------------------+
| 1 | 3.49 | Bird bean bag toy |
| 2 | 3.49 | qunkanlu |
| 3 | 4.9 | qunkanlu 50 number |
| 1 | 5.9 | hongqi |
+------+-------+--------------------+
4 rows in set (0.00 sec)
相关文章推荐
- sql基础--怎样查询单列数据
- 数据库全面知识
- oracle表空间管理
- Redis
- MyBatis输出sql需要log4j.properties配置
- MySQL主从配置
- Oracle 导入 IMP-00058错误及其他
- 0005 《SQL必知必会》笔记01-SELECT语句
- 部署 Redis 群集
- mono+jexus 之连接数据库
- mysql的约束
- mysql
- MySQL之数据类型与操作数据表
- mysql文件的物理位置
- MySQL Optimization
- MySQL Compiling and Installation
- Mysql一条sql语句实现数据去重操作
- MySQL 5.6 Replication
- PLSql--cursor 显式游标(参数)
- macxos卸载mysql