Skip to content
Advertisement

SQL Count digits in a string

I have a table of the following information.

How would I edit the SQL query below to count the number of digits (i.e. [0-9]) in the strings?

Advertisement

Answer

One method is to get rid of all the other characters:

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