Skip to content
Advertisement

SQL CHECK() how to check if input is numeric value?

Hey how can I check if the input has 5 numbers? I tried everything like isnumeric/LIKE ‘%[0-9]%’ they all not working…

I tried the following but it doesn’t work.. please help

Advertisement

Answer

You can use GLOB operator:

See the demo.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement