用空字符串替换除数字以外的字符
来源:互联网 发布:制作木马软件 编辑:程序博客网 时间:2024/05/14 22:58
alter table table1 add id int identity(1,1)
go
declare @val varchar(10),@i int,@len int,@tel varchar(2000),@id int
select @val=''
declare ytbelwxg cursor for select id,c from table1
open ytbelwxg
fetch next from ytbelwxg into @id,@tel
while @@fetch_status=0
begin
select @i=1
select @len=len(@tel)
while @i< =@len
begin
select @val=substring(@tel,@i,1)
if isnumeric(@val)=0
update table1 set c= replace(c,@val,'')
select @i=@i+1
end
fetch next from ytbelwxg into @id,@tel
end
close ytbelwxg
deallocate ytbelwxg
go
alter table table1 drop column id
go
select * from table1
- 用空字符串替换除数字以外的字符
- 断字符串是否包含除字母、数字、下划线以外的字符
- 正则匹配内容是否含有除汉字数字英文以外的字符
- 怎么清空form中除readonly以外的数据
- python用正则表达式替换掉汉字、标点等指定字符以外的特殊字符
- 除对角线以外的求和
- jQuery实现清空table表格除首行以外的数据
- jquery获取表格除第一行以外的所有行并清空
- 替换非字母数字汉字空格外其他字符的SQL语句
- 替换除汉字字母数字和指定的字符或特殊符号外的所有内容的正则表达式
- 检测字符串中的是否包含除中英数字的字符(中文,英文)
- 替换字符串中想要替换的字符
- 移除字符串尾部的数字python
- 替换字符串里的字符
- 移除字符串中重复的字符
- 删除表格除第一行以外的其他行以及将表格内容拼接字符串
- 除Google 以外的十七个搜索引擎创新
- 关闭除主程序以外的所有窗体
- JSP入门详细讲解
- 怎样更改EXE的主图标
- SNMP基础(二):MIB节点的查找
- Chrome AdBlock导致RememberTheMilk无法添加新的任务
- [每天读一点英文:那些给我勇气的句子] alone but not lonely
- 用空字符串替换除数字以外的字符
- 常用的一些正则表达式
- 139条暴强个性签名,笑不死你死不休
- 大项目、小项目都是程序员成熟之道
- 防止重复启动应用程序
- ASCII 码值
- uva-10188-Automated Judge Script
- Oracle表空间管理
- “当前上下文中不存在名称”解决