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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mangai vellingiri
NA
1
842
Like pattern in sql query
Jul 24 2015 12:19 AM
Sir,
I have doubt in sql query like pattern. Consider the scenario,
roll no
name
1
karnan
2
karan
Now i want to retrieve the name with middle character 'n'. If i use query select * from tablename where name like '%n%', it retrieves the name karnan and karan. But my scenario is to retrieve only the character with 'n' in middle. In karan, 'n' is at end. The end character may anything but my scenario is i want name with 'n' in middle. What query i can use here?
Reply
Answers (
3
)
how to arrange rows order in sql ?????
Activity Flag Naming