我们就把一个单引号替换成两个单引号.
string.Format(" itempath like '{0}%' and ItemType='1' and deep='{1}' ", dr["itempath"].ToString().Replace("'", "''"), Convert.ToInt32(dr["deep"]) + 1);string.Format(" itempath l我们就把一个单引号替换成两个单引号.
string.Format(" itempath like '{0}%' and ItemType='1' and deep='{1}' ", dr["itempath"].ToString().Replace("'", "''"), Convert.ToInt32(dr["deep"]) + 1);string.Format(" itempath l