C#asp.net SQL替换 包含的字符


            string con = "server=.;uid=sa;pwd=****;database=data;Max Pool Size = 512;";

            SqlConnection conn = new SqlConnection(con);
            conn.Open();

            string sql1 = "update 文章列表 set 标题 = replace(标题,'要换走的字符','换新的字符');";
            SqlCommand com1 = new SqlCommand(sql1, conn);

            int count1 = com1.ExecuteNonQuery(); //


webform
桂ICP备16004754号