摘要:
查询条件之having # having的功能与where一样where 在分组之前用, where中写的条件必须在表中存在having 在分组之后用# 查询每个部门中大于30岁的平均工资,并且,保留中平均工资在10000以上的。1. 过滤大于30岁的select *from dep where 阅读全文
posted @ 2021-07-30 22:27
Gnomeshghy
阅读(61)
评论(0)
推荐(0)
摘要:
常用的SQL语句 # 1. 添加字段 alter table t1 add age int 约束条件 ;(默认是加在最后) 了解: alter table t1 add age int 约束条件 after id; # 在id字段后加字段age alter table t1 add age int 阅读全文
posted @ 2021-07-30 22:25
Gnomeshghy
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号