Answer the question
In order to leave comments, you need to log in
How to make a selection from the database and compose a string?
Please help with a solution.
I have a sqlite3 database with a user table.
The rows in the table look like this:
id number status
1 2987526 1
2 9725927 1 3
3925272
0
4 7896551 1 5 8926725
1 6 7829652
0
The task itself which number=7896551
Next, you need to compose a certain string astra , which lists the received numbers separated by commas :
var astra string
...
fmt.Println(astra)
> 2987526, 9725927, 8926725
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question