My question is, how can we use SELECT to find a name that starts with "A" in a MySQL table? thank
SELECT * FROM table_name WHERE columnname LIKE 'A%'
MySQL Docs
... LIKE 'A%'
(the first part of the request should be easy for you)
LIKE, :
LIKE
SELECT lastName FROM yourTable WHERE lastName LIKE 'A%'
SELECT name FROM <tablename> WHERE name like "A%"
LIKE. % .
%
SELECT * FROM table WHERE column like 'A%';
http://www.w3schools.com/SQl/sql_wildcards.asp
SELECT * FROM Persons WHERE Name LIKE 'A%'
Source: https://habr.com/ru/post/1729205/More articles:Why are operator overloads not used more often? - c #Possible consequences of increasing varchar length in MySql? - mysqlI do not understand how HQL joins - hibernateWhere will I find criticism of my source code? - code-reviewGPS operation: is there a service charge? - gpsCannot hide VIEWSTATE hidden field in ASP.NET - c #Is it possible to host ASP.NET MVC controllers + views in a webforms project ...? - asp.netCan this be done with the analytic functions of the oracle? - oracleHelp me break a string using RegExp - c #Invert selection in JTable - javaAll Articles