Home:ALL Converter>Counting special characters in Oracle

Counting special characters in Oracle

Ask Time:2014-11-14T15:03:11         Author:Saurabh

Json Formatter

Looking for a SQL query in ORACLE that returns the count of all the special characters used in a particular column. Suppose in a column there are 5 rows and each uses two special characters. I am looking for some query that gives 10 as the result.

What I used is:

SELECT * FROM Customers WHERE REGEXP_LIKE(Employees, '[^]^A-Z^a-z^0-9^[^.^{^}^ ]' );

but it seems to not be working. Tried a lot over the net but no luck.

Update: looking for a solution with 10g

Author:Saurabh,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/26924664/counting-special-characters-in-oracle
yy