Home > Database > Mysql Tutorial > sql修改字段内容_MySQL

sql修改字段内容_MySQL

WBOY
Release: 2016-06-01 13:17:45
Original
1102 people have browsed it

--sql 修改字段内容UPDATE 表 SET 字段=REPLACE(cast(字段 AS varchar(8000)),'被替换的内容','将要替换成的内容') UPDATE t_newsinfo SET [content]=REPLACE(cast([content] AS varchar(max)),'http://admin.thinkall.net.cn/','http://admin.xkpx.com/') 
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template