删除字符串中的反斜杠
将select * from table where 序号='"+id+"'存储至sql2008表中,取出后变为select * from table where 序号='/"+id+/"',请问高手如何将“/”删除掉,谢谢 --------------------编程问答-------------------- string s="你的字符串";s=s.Replace("/\"","\""); --------------------编程问答--------------------
正解 --------------------编程问答-------------------- +1 接分
--------------------编程问答--------------------
--------------------编程问答-------------------- Replace --------------------编程问答-------------------- 正解,接分。
string s="你的字符串";
s = s.Replace("/", "");
补充:.NET技术 , C#