I have a csv with a list containing certain ids that are useful to me. I wanted to make query from a table (lets call it friends) to get all the id's that are "friends" to the ids contained in the csv. I know that you can query
SELECT id,friend_id
FROM friends
WHERE id IN ('id1', 'id2', etc)
but the list is 300 ids and I don't want to type them all manually. is there a way to search trough a file after IN( )?