在存储过程中执行以下查询时出错:
set @query = 'select tag_name, rev, freezed from ' + QUOTENAME(@i_template_id) + ' where proj_code = ' + convert(float,@i_proj_code) + ' and inst_prcs = ''' + @i_module + ''''
execute(@query)
错误讯息:
"Error converting data type nvarchar to float"