基于SQL中的数据查询语句汇总

lizhaoyang40562 14 0 PDF 2020-12-17 11:12:24

where条件表达式–统计函数 代码如下:Select count(1) from student;–like模糊查询–统计班上姓张的人数 代码如下:select count(*) from student where realName like ‘张%’;–统计班上张姓两个字的人数 代码如下:select count(*) from student where realName like ‘张_’;–统计班上杭州籍的学生人数 代码如下:select count(*) from student where home like ‘%杭州%’;–查询班上每位学生的年龄 代码如下:select re

用户评论
请输入评论内容
评分:
暂无评论