Comments - CSV style LONGTEXT string into table splitted by comma TO multiple rows (PERFORMANCE)

 
2 years, 12 months ago Daniel Black

I'd save this to a file, SELECT .. INTO OUTFILE, or otherwise.

And reimport it with:

LOAD DATA INFILE specifying the comma as the "LINES TERMINATE BY" character (an set "FIELDS SEPARATE BY" to something else.

There's really not performant way to do this in SQL, especially a 10.3 version.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.