字符串如果是数字转换成数字,不能转转返回0请问怎么写? 字符串如果是数字转换成数字,不能转转返回0请问怎么写? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 create table tb(val nvarchar(10))insert into tb select 'abcd' union all select '324' union all select nullgoselect (case when isnumeric(val)!=0 then convert(int,val) else 0 end) from tb/*-----------03240(3 行受影响)*/godrop table tb 字段里加字符串 请教:查询结果加序号的问题。。 sql错误,关于死锁的 请教存储过程中的错误描述信息怎么得到 基础问题,小弟刚接触数据库 SQL也能够在windows98中运行吗?可是我的SQL怎么也不能启动??? to 邹建大力 ID 如何取得?? 在线等待,急, 为什么不能连接到远程的 analyse service mysql触发器 急求教帮忙看下哪里不对(新手) 存储过程中插入临时表的问题
insert into tb select 'abcd' union all select '324' union all select null
go
select (case when isnumeric(val)!=0 then convert(int,val) else 0 end) from tb
/*
-----------
0
324
0(3 行受影响)*/
go
drop table tb