if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[f_replace]') and xtype in (N'FN', N'IF', N'TF'))

drop function [dbo].[f_replace]

GO

/*--非法字符替换函数

去掉字符串中,小于32的字符

保留 TAB  char(9)

换行 char(10)

回车 char(13)

如果上述字符也不需要,则将函数中的注释删除

--邹建 2004.09(引用请保留此信息)--*/

/*--调用示例

--调用函数进行替换处理的示例

declare @s varchar(10)

set @s='a '+'b'+char(11)+'c'

select dbo.f_replace(@s)

--*/

create function f_replace(

@str varchar(8000)

)returns varchar(8000)

as

begin

select @str=replace(@str,a,'')

from(select a=N''

union all select N'' union all select N''

union all select N'' union all select N''

union all select N'' union all select N''

union all select N''

--  union all select N' ' --TAB  char(9)

--  union all select N'

--  '      --换行 char(10)

union all select N' ' union all select N' '

--  union all select N'

--  '      --回车 char(13)

union all select N'' union all select N''

union all select N'' union all select N''

union all select N'' union all select N''

union all select N'' union all select N''

union all select N'' union all select N''

union all select N'' union all select N''

union all select N'

vba mysql 非法字符串_非法字符串处理.sql相关推荐

  1. mysql 中文截取_中文字符串截取

    java多字节字符串按字节截取 算法思路 1.先按照实际要截取的字节长度,复制一份字节数组 2.转换回字符串,计算字符长度resLen,并按这个长度截取原字符串 3.计算截取的字符串的字节数是否等于需 ...

  2. access mysql连接字符串_[数据库连接字符串] Access 连接字符串

    [数据库连接字符串] Access 连接字符串 //ODBC 标准安全策略 Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb ...

  3. java 字符数组与字符串_用于字符串和数组的5种简单有效的Java技术

    java 字符数组与字符串 Java通常会排在前五种最流行的编程语言中,因此可以理解. 它是一种通用语言,非常容易学习,因为它是一种高级语言,并且可以满足许多用例. 由于这些原因,Java是一门很棒的 ...

  4. jet mysql连接字符串_数据库连接字符串大全

    MySQL 连接方式----------- MySQL Connector/ODBC 2.50 (MyODBC 2.50)连接方式 本地数据库连接 Driver={mySQL};Server=loca ...

  5. mysql关键字释义_数据库连接字符串ConnectionString 中的关键字值释义

    ConnectionString 类似于 OLE DB 连接字符串,但并不相同.与 OLE DB 或 ADO不同,如果"Persist Security Info "值设置为fal ...

  6. ef mysql 配置字符串_连接字符串-EF Core | Microsoft Docs

    连接字符串Connection Strings 10/27/2016 本文内容 大多数数据库提供程序都需要某种形式的连接字符串才能连接到数据库.Most database providers requ ...

  7. mysql 触发器拼接字符串_触发器 字符串拼接函数

    ##触发器 触发时间 before after 触发事件 insert update delete 等 create table score_log select * from score where ...

  8. 字符串操作截取后面的字符串_对字符串的5个必知的熊猫操作

    字符串操作截取后面的字符串 We have to represent every bit of data in numerical values to be processed and analyze ...

  9. vba mysql 自动化错误_在Excel中运行VBA脚本时出现自动化错误

    在Excel 2007中运行VBA代码时出现自动化错误.我尝试连接到远程SQL Server数据库并将数据从Excel加载到SQL Server.在Excel中运行VBA脚本时出现自动化错误 我得到的 ...

最新文章

  1. 你以为的BUG--BFC给你解决!
  2. mysql下count(*)和count(1)的区别
  3. kubernetes cpu限制参数说明
  4. 菜鸟——首个页面——奇葩问题
  5. 使用SCVMM2008 R2管理Hyper-V之3-使用模板部署虚拟机
  6. js高级学习笔记(b站尚硅谷)-8-关于语句分号的问题
  7. 预产期在线计算机,预产期计算器
  8. PCB制图 | Altium Designer 20下载与安装
  9. oracle注射,中国联通沃支付一处Oracle数据库注射
  10. rar、zip优缺点
  11. 计算机基础和web相关知识点
  12. [转载vchome] 2005年经典事件
  13. 2. Instructions: Language of the computer
  14. 58.union (联合查询)
  15. List 常用的 Lambda 操作
  16. zimbra邮箱服务器迁移
  17. 华为摄像头(海思3519A/3516D)开发环境nfs共享目录
  18. 3dsMax如何渲染模型
  19. PTA L1-006 连续因子(详解)
  20. uniapp判断是否打开定位GPS

热门文章

  1. 【人生杂谈】生命DNA/理性思维/天才神经病
  2. mosquitto源码分析(二)
  3. 4G通信技术LTE介绍
  4. 计算机多了一个虚拟硬盘,移动硬盘中安装多个虚拟操作系统 -电脑资料
  5. linux32位运行64位程序,32位windows下可以运行的程序在64位linux下报错
  6. 洛谷P3803 【模板】多项式乘法(FFT)
  7. C# winform程序防止前台卡死
  8. 求1!+2!+3!+....20!的值
  9. [实战]Router configuration for TP ROOM
  10. React.js 基础入门四--要点总结