SQL Server Archives - Tech Insights https://reactconf.org/category/how-to-find-special-character-in-a-string-using-like-operator/ Unveiling Tomorrow's Tech Today, Where Innovation Meets Insight Fri, 03 May 2013 07:43:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 https://i0.wp.com/reactconf.org/wp-content/uploads/2023/11/cropped-reactconf.png?fit=32%2C32&ssl=1 SQL Server Archives - Tech Insights https://reactconf.org/category/how-to-find-special-character-in-a-string-using-like-operator/ 32 32 230003556 How to find Special character in a string using SQL LIKE operator https://reactconf.org/howtofindspecialcharacterinastring/ https://reactconf.org/howtofindspecialcharacterinastring/#respond Fri, 03 May 2013 07:43:00 +0000 http://www.sqlneed.com/2013/05/03/how-to-find-special-character-in-a-string-using-sql-like-operator/ How to find a special character in a string Query – I This query finds all special character in a string. remove special character in a string in SQL SERVER …

The post How to find Special character in a string using SQL LIKE operator appeared first on Tech Insights.

]]>

How to find a special character in a string




Query – I
This query finds all special character in a string.
SELECT Employeeid,FirstName FROMEmployees
WHERE FirstName  like  ‘%[^0-9A-Z]%’
 

Query – II
This query finds only a specified special character in a string.

SELECT Employeeid,FirstName FROMEmployees
WHERE FirstName  like  ‘%[@,#,$,%,*]%’

Query – III
This query finds numeric value in a string.
SELECT Employeeid,FirstName FROM Employees
WHERE FirstName  like  ‘%[0-9]%’
 

The post How to find Special character in a string using SQL LIKE operator appeared first on Tech Insights.

]]>
https://reactconf.org/howtofindspecialcharacterinastring/feed/ 0 2227