数据表中替换

来源:互联网 发布:上海大学乐乎新楼宾馆 编辑:程序博客网 时间:2024/05/19 22:23

 

     #region 数据表-字段值=替换
        public static int replaceData(string TableName, string FieldName, string FirstWord, string LastWord)
        {
           
            string strsql = "UpDate " + TableName + " set " + FieldName + "= replace(" + FieldName + ",'" + FirstWord + "','" + LastWord + "')";
            int l = Exsqlcmd(strsql);
            return l;

        }
        #endregion

原创粉丝点击