In MySQL, how do I select only rows with certain values for a given column?

Let’s say I have this table…

user_id | first_name | last_name
—-0—–|—joe——–|—-smith—-
—-1—–|—bob——-|—-jones—-
—-2—–|—joe——–|—-black—-
—-3—–|—mary—–|—-jeane—-
—-4—–|—peter—–|—-parker—

How would I go about selecting the contents of the rows which correspond to the user_id’s 1, 2, & 3?
I want to use these rows later to display their contents in a list to the user.

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories