TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Knowing and Removing the Underscore Records in a table
Satyapriya Nayak
Dec 04, 2013
3.5
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog we will know how to find and remove the underscore records in a table.
To find the underscore records in table
SELECT sname FROM student WHERE (sname LIKE '%|_%%' ESCAPE '|')
Or
SELECT * FROM student WHERE sname LIKE '%[_]%'
To remove the underscore records in table
UPDATE student SET sname = REPLACE(sname, '_', '')
Knowing and removing underscore records in table
Next Recommended Reading
Remove Duplicate Records From A Table In SQL Server