sql语句如何判断字段是否为数字?

如题所述

第1个回答  2022-09-29

判断字段是否为数字可以参考下面的例子:

select * from biao where isnumeric(ziduan)=0 查非数回字答

select * from biao where isnumeric(ziduan)=1 查纯数字

扩展资料:

SQL参考语句

查找:select * from table1 where field1 like ’%value1%’ (所有包含‘value1’这个模式的)

排序:select * from table1 order by field1,field2 [desc]

求和:select sum(field1) as sumvalue from table1

平均:select avg(field1) as avgvalue from table1

参考资料来源:

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网