MySQL database practice -5

The number of queries "Lee" teacher surnamed


Analysis: This question is mainly on the statements and the like '%' usage, as long as the search begins with Lee in the teacher data in the table


 

Inquire

select count(*)
from teacher
where tname like '李%';

search result:

+----------+
| count(*) |
+----------+
|        1 |
+----------+

Guess you like

Origin www.cnblogs.com/lattesea/p/12168162.html