Menu

GBase Database: Why unload Delimiters Are Limited to 4 Characters
📰

GBase Database: Why unload Delimiters Are Limited to 4 Characters

DEV Community: database·mmllllzcn·15 days ago
#YoG8whVA
#devtodatabase#devto#dev#delimiter#export
Long article (791 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.