如何使用sql删除列数据中的字符



>我有数据如下的表格

  samcol       
 60.78686
 46.0000 
 45.43240
 56.3453450

我正在尝试删除小数位之前的"."。表格应该看起来像

  samcol
 6078686
 460000
 4543240 
 563453450

使用Replace字符串函数将所有.替换为空字符串

Select Replace(samcol,'.','') from yourtable

最新更新