CREATE FUNCTION [dbo].[FunIsInteger] 
(
    
@strs varchar(50)
)
RETURNS bit
AS
BEGIN
    
declare @rb bit
  
if patindex('%-%',@strs)<>0 set @strs = right(@strs,len(@strs)-1)
    
if patindex('%[^0-9]%',@strs)=0 and isnumeric(@strs)=1
        
set @rb = 1
    
else
        
set @rb = 0
    
return @rb
END

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2021-11-01
  • 2021-07-12
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2021-06-22
  • 2021-11-28
相关资源
相似解决方案