SELECT * FROM teacher where age BETWEEN 20 and 30;
is null
delete from teacher
truncate table student
---重排标识列order by age DESC
order by age DESC,height
按年龄降序,相同的按身高升序select * from student ORDER BY CHAR_LENGTH(name) DESC
select name as ‘姓名‘, CONCAT(sex,‘人‘) as ‘性别‘, from student
SELECT * from person where DATE_FORMAT(school,‘%m‘) = 5
select a.name as ‘‘,b.name as ‘‘0
from stu1 as a,stu2 as b
where a.外键 = b.主键
原文:https://www.cnblogs.com/64one/p/14759450.html