I hava a CSV file that I want to treat as source code. Essentially I want to take the csv lines and use them as if they were calls to a function with all string parameters.
The problem is, the individual elements are only double quoted when there is a comma in the text.
Is there a quick way of adding the double quotes all elements in a csv row.
The original document is an excel file so anything in excel would be fine, but other quick tools would be welcome.
Have a look at the Excel CONCATENATE() function. It takes a comma delimitted list of strings or quoted literals…
where A1 is one of your columns.
I frequently do this for one-off SQL inserts, so where you use double-quotes, I write SQL insert statements