Skip to content
Advertisement

Javascript print SQL first item in ResultSet without comma, then all others with comma

Current output:

Desired output:

How can I do this in javascript within the sql stored procedure? I would like to not have to execute the query more than once because the actual query is computationally intensive.

Advertisement

Answer

you can add boolean check if this first or not:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement