我这个存储过程运行报"在将 nvarchar 值 ' and (postperiod.Code = N'01') ' 转换成数据类型 int 时失败。"这个问题,求解
你的 postperiod.Code 是字符类型的字段吧,里面估计有null或者空字符串,或者非数字字符串,所以在进行比较运算的时候出错了