PDA

View Full Version : get all values


GO ILLINI
04-29-2007, 08:18 AM
Is it possible to just return all the values that are in a column?

-Adam

shyam
04-29-2007, 10:04 AM
select column_name from table_name;

or am i missing something here...

guelphdad
04-29-2007, 02:41 PM
if you mean to only list the unique/distinct values, and not return duplicates do the following

SELECT DISTINCT columnname
FROM yourtable

GO ILLINI
04-29-2007, 07:52 PM
DISTINCT was what i was looking for. Thanks.