NULLIF DONATION_AMOUNT = BLANKS
If the donation_amount field in the file is blank, set it to NULL in the table.
DEFAULTIF DONATION_AMOUNT = 'NULL'
If the donation_amount field in the file = the string 'NULL', set it to NULL in the table.
"REGEXP_REPLACE(TRIM(:DONATION_AMOUNT),'[,/$]')"
The TRIM() call removes blanks from either end of the string read from the file,
then removes commas, slashes and dollar signs.
Чтобы обрезать до 2 десятичных знаков в дополнение к указанным выше правилам, оберните его в REGEXP_SUBSTR (), который соответствует 1 или нескольким числам, привязанным к началу строки, за которыми следует десятичная точка, за которой следует до 2 необязательных чисел .
REGEXP_SUBSTR(REGEXP_REPLACE(TRIM(:DONATION_AMOUNT),'[,/$]'), '^\d+\.\d?\d?', 1, 1)