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.
Total Views: 19 Today Views: 0
















