NULL
represents an unknown piece of data in a column or field. Within your data files you can designate a string to represent null values. The default string is \N
(backslash-N) in TEXT
mode, or an empty value with no quotations in CSV
mode. You can also declare a different string using the NULL
clause of COPY
, CREATE EXTERNAL TABLE
or gpload
when defining your data format. For example, you can use an empty string if you do not want to distinguish nulls from empty strings. When using the Greenplum Database loading tools, any data item that matches the designated null string is considered a null value.
Parent topic: Formatting Data Files