摘要: 二、聚合函数 (1)max 最小值 select max(math) from student (2)min 最大值 select min(math) from student (3)sum 总数 select sum(math) from student (4)avg平均数 select avg( 阅读全文
posted @ 2025-02-27 16:27 君庭 阅读(15) 评论(0) 推荐(0)
摘要: 一、查询语句 1、select查询一个表中的所有数据 格式: select * from 表名 ; 案例: select * from student ; 2、查询部分字段信息数据 格式: select 字段1,字段2 from 表名; 案例: select name,math from stude 阅读全文
posted @ 2025-02-27 15:59 君庭 阅读(56) 评论(0) 推荐(0)
摘要: 一、新建表 二、建表语句 create table student( id int primary key , name char(20), sex char(10), age int(3), mobile char(20), class char(10), english int(10), chi 阅读全文
posted @ 2025-02-27 10:00 君庭 阅读(36) 评论(0) 推荐(0)