I don't actually understand your question but if you need only a certain number of lines you can use something like
B4X:
cur=sql.ExecQuery("SELECT * FROM tabel1 WHERE di in (1,23,467,346,83685,2568,2) ")
OR
cur=sql.ExecQuery2("SELECT * FROM tabel1 WHERE id in (?,?,?,?,?,?,?);",Array(1,23,467,346,83685,2568,2))
if not... and you just need one line then post #2 is your answer.
Use the stringBuilder (internal library part of B4A) to build the IN operator clause for any list of number of items and then build your query. Here is an example on how to do it:
B4X:
Dim MyList As List
MyList.Initialize
MyList.AddAll(Array As Int(34,674,3, 76,33,98,4))
Dim sb As StringBuilder
sb.Initialize
sb.Append( " IN(")
For i= 0 To MyList.size -1
Dim f As Int =MyList.Get(i)
If i = MyList.Size-1 Then
sb.Append($"${f})"$)
Else
sb.Append($"${f},"$)
End If
Next
Log(sb.ToString) 'displays as example: IN(34,674,3,76,33,98,4)
Dim MyInClause As String = sb.ToString
cur=sql.ExecQuery("SELECT * FROM tabel1 WHERE id " & MyInClause )