0
我應該如何重寫我的insert語句?數字字段溢出異常
CREATE TABLE test_table (
rate decimal(16,8)
);
INSERT INTO test_table VALUES (round(3884.90000000/0.00003696, 8));
例外:
ERROR: numeric field overflow
SQL state: 22003
Detail: A field with precision 16, scale 8 must round to an absolute value less than 10^8. Rounded overflowing value: 105110930.73593074
數據庫:Greenplum數據4.3.8.0構建1(基於PostgreSQL的8.2.15)