Commas within CSV Data

前端 未结 7 1603
春和景丽
春和景丽 2020-12-01 12:36

I have a CSV file which I am directly importing to a SQL server table. In the CSV file each column is separated by a comma. But my problem is that I have a column \"address\

7条回答
  •  囚心锁ツ
    2020-12-01 12:59

    Most systems, including Excel, will allow for the column data to be enclosed in single quotes...

    col1,col2,col3 'test1','my test2, with comma',test3

    Another alternative is to use the Macintosh version of CSV, which uses TAB's as delimiters.

提交回复
热议问题