To override an attached format, another FORMAT phrase is needed in the retrieval statement. Using the preceding table, one of the two following statements must be used to retrieve the numeric value:
SELECT Col1 (FORMAT '+9999') FROM Test1;
SELECT CAST (Col1 AS INTEGER) FROM Test1;
The result is as follows.
Col1 ----- -1231