摘要:
增加列: alter table tablename add 列名 数据类型 comment '注释'; 增加列并指定位置在某个字段X后面: alter table tablename add 列名 数据类型 comment '注释' after X ; 增加列并指定位置在第一列 alter tab 阅读全文
posted @ 2021-06-26 17:53
Avicii_2018
阅读(342)
评论(0)
推荐(0)
摘要:
desc 表名; 或者 describe 表名; 或者 show columns from 表名; 示例 : 阅读全文
posted @ 2021-06-26 17:35
Avicii_2018
阅读(163)
评论(0)
推荐(0)
摘要:
使用聚合函数时,只返回一个结果, 所以要查询其他信息时,需要配合group by 函数使用 如下语句name会返回多个name中的一个,这显然是不行的 : select name,count(*) from student_info ; group by 的作用,就是对数据进行分组. group b 阅读全文
posted @ 2021-06-26 17:01
Avicii_2018
阅读(93)
评论(0)
推荐(0)