Summary: Learn how delimiter selection affects data export and import in GBase Database(GBase 8s). This guide explains the four-character delimiter limit, compound delimiters, delimiter collisions, and how to keep unload and load operations consistent.
Today I ran into a small but costly data export issue: I exported a table using commas as delimiters, then loaded it back. One record became five rows.
The data was not corrupted. The problem was that the remarks field already contained commas.
This is a classic delimiter collision, and it is worth understanding how to avoid it in GBase Database.
1. Choose a Compound Delimiter Instead of a Single Character
In GBase Database(GBase 8s), the unload statement allows you to specify a delimiter for exported data.
For example:
UNLOAD TO '/data/order.unl' DELIMITER '|#' SELECT * FROM t_order ;
Enter fullscreen mode
Exit fullscreen mode
The delimiter here is |# , a combination of two characters.
GBase Database supports delimiters of up to four characters.…