Convert string with expression to decimal

后端 未结 3 508
清歌不尽
清歌不尽 2021-01-06 16:33

I have a table which has a column \'Faktor\' (varchar(50)) which contains expressions like:

1/3
2*9/5
0.567
0.23

No, I am searching a way t

3条回答
  •  无人及你
    2021-01-06 16:52

    You could use the execute statment to compile the string to the result of the represented expression or you evaluate the expression in your application.

提交回复
热议问题