网站建议:179001057@qq.com

数据表中替换

技术2022-05-12  0

 

     #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


最新回复(0)