Tech
Forums
Jobs
Books
Events
Live
Learn
More
Training
Interviews
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Like pattern in sql query
mangai vellingiri
Jul 24 2015 12:19 AM
480
Reply
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?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
how to arrange rows order in sql ?????
Activity Flag Naming