Reputation: 3758
Table
--------
| col1 |
--------
| A |
--------
| A |
--------
| A |
--------
| B |
--------
| B |
--------
| C |
--------
How can I get values A, B, C?
Upvotes: 0
Views: 84
Reputation: 901
you can use the following select:
select distinct(col1) from ...
Upvotes: 0
Reputation: 14649
Using a distinct query can accomplish your goal.
SELECT DISTINCT(col1) FROM `Table`;
Upvotes: 2