🌈 搜索
📅 最后修改于: 2022-03-11 15:05:15.281000 🧑 作者: Mango
-- Precision of 10 and a scale of 2 SELECT CONVERT(DECIMAL(10, 2), col_name) SELECT CONVERT(DECIMAL(10, 2), 2.999999) -- 3.00 SELECT CONVERT(DECIMAL(10, 2), 12352.334) -- 12352.33 SELECT CONVERT(DECIMAL(10, 2), 12564258524132.336) -- Error: data truncation