c#中将stringbuilder对象通过tostring()转换为string类对象 出现了反斜杠

c#中将stringbuilder对象(包含转义字符),通过tostring()转换为string类对象 出现了反斜杠

StringBuilder sql = new StringBuilder();
sql.Append("update patienthabit ");
sql.Append(updateString);
sql.Append(" where patientID=\" + GlobalVariables.patientID + \" ");
string str = sql.ToString();
GlobalVariables.ExecuteNoneQuery(str);

str的结果是带反斜杆,为什么是这样,如何改。

" where patientID=\" + GlobalVariables.patientID + \" "
改为这样:
" where patientID=\"" + GlobalVariables.patientID + "\" "

\"是转义的双引号