I'm trying to set my query result to follow format needed by javascript array. generally, the format should look like this:
[
"mydata1",
"mydata2",
]
Thus, based on my limited SQL query knowledge, this is the result that I was able to achieve so far based on this query:
SELECT '"',mydata, '",' FROM Table WHERE ID = 44946
OR ID = 12345
However, the results will appear in 3 different columns, and it will leave some space between them.
" 2859440635959 ",
" 2749566484535 ",
Then I'll have to open notepad and remove all the spaces. Is there any other query workaround or anything that may simplify this process?