Why does ISNUMERIC('.') return 1?

后端 未结 3 436
逝去的感伤
逝去的感伤 2020-11-28 14:35

Recently I was working with ISNUMERIC in SQL Server, when I encountered a problem, which led to finding this snippet of code.

SELECT ISNUMERIC(\'.\')
         


        
3条回答
  •  天命终不由人
    2020-11-28 15:20

    I think it also interprets a number of other non-numeric fields as numeric, there's further info here -

    http://classicasp.aspfaq.com/general/what-is-wrong-with-isnumeric.html

提交回复
热议问题