VARCHAR to DECIMAL

前端 未结 12 645
清歌不尽
清歌不尽 2020-12-06 09:24

I want to convert a varchar(max) column to decimal(10,4).

When I try to use cast or convert I am getting an arit

12条回答
  •  情深已故
    2020-12-06 09:40

    You are going to have to truncate the values yourself as strings before you put them into that column.

    Otherwise, if you want more decimal places, you will need to change your declaration of the decimal column.

提交回复
热议问题