I have a mySQL table that contains some fields that have the ',' char in them (strings). The thing is, when I'm trying to save the data that my php file generates into a CSV, it takes the ',' as a delimiter and displays the same field as two columns in Excel. This is the SQL code I use:
"SELECT * INTO OUTFILE 'c:/mydata.csv' FROM my_table"
now if the value of sum field in the SQL table is "a,b,c", each one of these letters will be in a different column instead of one .
How do I fix that?
thanks a lot!!