MSSQL - Checking if a string contains only digits
Example of checking if a string contains only digits:
SELECT * FROM my_table WHERE user_name NOT LIKE \'%[^0-9]%\';
Example of checking if a string contains only digits:
SELECT * FROM my_table WHERE user_name NOT LIKE \'%[^0-9]%\';
Comments (0)
No comments yet.