Split one long comma string into multi column new table

前端 未结 3 1813
情书的邮戳
情书的邮戳 2021-01-27 12:14

I am newish to SQL to please excuse any ignorance. I have a table, called \'temp\' that contains one Field with one long comma seperated string, thus:

Field1
Ap         


        
3条回答
  •  梦如初夏
    2021-01-27 13:04

    Usually sql is used for structured data, and a comma separated string would come from an outside data file. If you have the outside data file available, load the data like this. Or consider exporting your original temp table to a data file if you have to.

    bulk insert tbl_fruits from file.csv with fieldterminator=','
    

提交回复
热议问题