Exporting GBase 8a Query Results to CSV Without Breaking Excel on Newlines and Quotes
GBase 8a, a China-developed MPP database from GBASE, can export query results to customizable file formats. Embedded newlines in CSV data split one logical row into several physical lines, which misaligns rows when opened in Excel. Enclosing fields in double quotes lets Excel treat multi-line values as single fields and fixes the misalignment. Literal double quotes inside values must be escaped by doubling them, either manually with replace or automatically with the DOUBLE_ENCLOSED BY option, which the article recommends. Combining both techniques preserves the original content while keeping the file cleanly parseable in spreadsheet tools.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in