网站数据库批量替换代码高亮代码


update blog_posts set `post_content` = replace(`post_content`,'[sourcecode]','<pre class="prettyprint linenums">') where 1=1;

update blog_posts set `post_content` = replace(`post_content`,'[/sourcecode]','</pre>') where 1=1;
版权声明:本文内容以盗版加工为主,原创为辅,意在分享,收藏,记录工作中的点点滴滴。不代表任何组织,不代表任何商业机构,也不代表我个人所有想法。
心晴客栈 » 网站数据库批量替换代码高亮代码

发表回复