摘要:
聚合函数 查班里一共多少学生: select count(id) from stu; -- count()统计的列名不能为null select count(*) from stu; -- 推荐写* 查班里数学最高/低分/平均分: select min(math) from stu; -- 聚合函数 阅读全文
posted @ 2023-02-28 09:40
大灰狼21
阅读(21)
评论(0)
推荐(0)
摘要:
模糊查询 查姓马: select * from stu where name like '马%'; 查第二个字是花: select * from stu where name like '_花%'; -- 下划线占第一个位置 查名字里包含德:: select * from stu where nam 阅读全文
posted @ 2023-02-28 09:11
大灰狼21
阅读(20)
评论(0)
推荐(0)