一个存储过程
create proc mychina
@rtn varchar(100) output
as 
if not exists(select * from trans_header 
where bar_code between @frbar and @tobar and trans_user=@user_code and state=1 )
begin
set @rtn= '批次:'+@frbar +' 至 '+ @tobar+'不是由用户:'+@user_code+'导入,不能取消别人操作的数据!'
return
end
我在程序中调用这个存储过程 取得@rtn的值得到的是????:! 乱码我觉得是中文在作怪,怎么才能解决这个问题,让我开心的显示出中文
set @rtn=N '批次:'+@frbar +' 至 '+ @tobar+'不是由用户:'+@user_code+'导入,不能取消别人操作的数据!'(这样也不行)请大家帮我,谢谢了,祝大家周末愉快