ltk1984 发表于 8-1-2013 03:02 PM 
postgresql 不能改,只能用numeric. mysql改去 `price` decimal(50,23) DEFAULT NULL,结果还是一样。
...
根據 Official documents 應該是可以改
全文在這裡:http://www.postgresql.org/docs/9.1/static/datatype-numeric.html
8.1.2. Arbitrary Precision Numbers 第二個paragraph:
We use the following terms below: The scale of a numeric is the count of decimal digits in the fractional part, to the right of the decimal point. The precision of a numeric is the total count of significant digits in the whole number, that is, the number of digits to both sides of the decimal point. So the number 23.5141 has a precision of 6 and a scale of 4. Integers can be considered to have a scale of zero.
Both the maximum precision and the maximum scale of a numeric column can be configured. To declare a column of type numeric use the syntax: NUMERIC(precision, scale)
|