Table
--------
| col1 |
--------
| A |
--------
| A |
--------
| A |
--------
| B |
--------
| B |
--------
| C |
--------
How can I get values A, B, C?
使用不同的查询可以实现您的目标。
SELECT DISTINCT(col1) FROM `Table`;
您可以使用以下选择:
select distinct(col1) from ...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.