摘要: 1 ##排序order by 2 ##按照年龄排序 ,默认是升序 3 ##asc:升序 desc:降序 4 select * from student1 order by sage desc; 5 ##把学号不为5的所有学生的学号降序排列。 6 ##先条件后排序 7 select * from st 阅读全文
posted @ 2021-07-21 15:53 zheng_newbie 阅读(78) 评论(0) 推荐(0) 编辑
摘要: -- 将sid移动到第一行 alter table student modify sid int first; -- 将sage移动到ssex后面 alter table student modify sage int not null after ssex; -- 添加删除主键 alter tab 阅读全文
posted @ 2021-07-21 15:48 zheng_newbie 阅读(39) 评论(0) 推荐(0) 编辑