Sadly, I somehow was unable to find an answer for this for the past two hours... I am trying to pass an array of integers into an SQL IN query like so:
"SELECT id, bio, image_url, userhandle FROM users IN ([4,6,7,8])"
Of course this is not gonna work so i tried this, but it only works with string arrays. formattedUserIds is the array of integers.
"SELECT id, bio, image_url, userhandle FROM users IN ('" + formattedUserIds.join(",") + "')"
to clarify, basically what i need is to convert [4,6,7,8] -> 4,6,7,8 so i can pass it into the in clause like IN(4,6,7,8) any help is appreciated.