I want to take value on the database and replace the comma with a newline and then write to a text file.
Example:
SELECT column FROM table WHERE ID = 6
Result: Monday,Tuesday,Wednesday,Thursday,Friday
I want it to then remove the commas and write to a .txt file with newline.
Result:
Monday
Tuesday
Wednesday
Thursday
Friday
Hope this makes sense.