select cast(10.1235456 as decimal(10,2)) 如果想四舍五入的话,可以嵌套round select cast(round(10.1235456,2) as decimal(10,2))