1. 首页
  2. 考试认证
  3. 思科认证
  4. 除MSSQL数据库text字段中恶意脚本的删方法

除MSSQL数据库text字段中恶意脚本的删方法

上传者: 2020-12-17 06:19:53上传 PDF文件 25.81KB 热度 15次
方法很简单:text字段不能使用Replace,所以使用patindex 代码如下:-select * from Product where P_Intro like ‘%[removed][removed]%’ –text字段的替换处理示例–全表替换 — select datalength(P_Intro),* from Product –邀月 整理 –定义替换的字符串 declare @s_str nvarchar(4000),@d_str n
下载地址
用户评论