How will I get all the rows from my table where name starts with 's' and ending with 'I'?

0 votes
Hi,

I am facing a problem when I want to fetch all the data from my table where name starts with 's' and end with 'I'.

Can you please help me out with the right query?
May 28, 2019 in Database by Santanu
135 views

1 answer to this question.

0 votes

Hi Santanu,

I understand your problem,

You can try this query to fetch your data,

select * from tablename where name like 'S%I';

The query will work like,

 First, it will take all the names which will have 'S' as the First letter and then It will check for the last letter  'I' and then it will show the result.

I hope this answer will help you,

Thank you,

answered May 28, 2019 by sampriti
• 1,100 points

Related Questions In Database

0 votes
1 answer
0 votes
1 answer

How do I kill all the processes in Mysql “show processlist”?

Hello kartik, Mass killing operation saves time. Do it ...READ MORE

answered May 4 in Database by Niroj
• 57,500 points
90 views
0 votes
2 answers

How to send data to my database from html and css Contact Us Form?

Hello @Sign, It is simple to create contact ...READ MORE

answered Aug 4 in Database by Niroj
• 57,500 points
148 views
0 votes
1 answer

Is it possible to access Couchbase by terminal?

What you want to accomplish isn't possible ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,850 points
97 views
0 votes
1 answer

How to connect Java program to the MySQL database?

You can connect your Java code with ...READ MORE

answered May 11, 2018 in Java by Parth
• 4,630 points
443 views
0 votes
1 answer
+1 vote
3 answers

How do I check and export sonarqube analysis reports in embedded db?

Browse to sonarqube web instance to access ...READ MORE

answered Jul 2, 2018 in DevOps Tools by DareDev
• 6,850 points
13,143 views
0 votes
1 answer

How can I check my all existing table in MySQL database?

Hi Pratik, I understand your problem regarding this ...READ MORE

answered Jul 1, 2019 in Database by sampriti
• 1,100 points
171 views
0 votes
1 answer

How can I change my existing database name?

Hey Partha, I understand your problem, I think this ...READ MORE

answered Jul 4, 2019 in Database by sampriti
• 1,100 points
81 views