Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I search for names starting wih A in MySQL?

I have a question that how can we use SELECT for searching the name which start with 'A' in MySQL table? thanks

like image 897
Johanna Avatar asked Jan 20 '10 09:01

Johanna


People also ask

How do I find the name of A starting letter in MySQL?

In MySQL use the '^' to identify you want to check the first char of the string then define the array [] of letters you want to check for. REGEXP is a synonym for RLIKE so this answer is the same as the one given by @ZenOut.

How do I find start with in SQL?

select * from table_name where column_name line '%kk%'; will match any string that includes 'ss' for instance: llssll. ssll If you want to match the start of the string you should use 'ss%' instead. select * from table_name where column_name line 'ss%'; this query will return only ssll.

How do I find keywords in MySQL?

In the search grid, choose tables and views of interest or leave them all checked. To narrow down the MySQL search data scope, select the table, views, numeric, text type, and date columns checkboxes. To start the search, click the Find button or hit the Enter key from the keyboard.

How do I find names that begin and end with A vowel in SQL?

To check if a name begins ends with a vowel we use the string functions to pick the first and last characters and check if they were matching with vowels using in where the condition of the query. We use the LEFT() and RIGHT() functions of the string in SQL to check the first and last characters.


1 Answers

SELECT * FROM table_name WHERE columnname LIKE 'A%'
like image 77
stepanian Avatar answered Nov 14 '22 17:11

stepanian