【发布时间】:2021-02-16 11:05:26
【问题描述】:
我在我的 SQL 表中遇到迁移问题,
例如,我有一个名为 Error 的表,其中包含值
latitude DECIMAL(9,2)
longitude DECIMAL(10,8)
info DECIMAL(11,8)
idsf int
sf tinyint
value float
这些行必须更改为:
latitude DECIMAL(9,2) => DECIMAL(7,1)
longitude DECIMAL(10,8) => DECIMAL(8,6)
info DECIMAL(11,8) => DECIMAL(9,6)
idsf int => DECIMAL(7,2)
sf tinyint => DECIMAL(5,2)
value float => DECIMAL(7,1)
问题是我每次都遇到超出范围的问题,因为某些值不会自动截断。
这可能有解决方法吗?
感谢您的宝贵时间
【问题讨论】: