Declare STR_TMP nvarchar(500)
SELECT STR_TMP= '(123+321*156+(321-213)*101)/(123-23) '
问:如何获取STR_TMP 代表的计算结果?
谢谢!
------解决方案--------------------
Declare @STR_TMP nvarchar(500)
SELECT @STR_TMP= 'select (123+321*156+(321-213)*101)/(123-23) '
exec (@STR_TMP)
----------
661