您的位置:首页 > 数据库

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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: