07 2021 档案

摘要:题目:设有一数据库,包括四个表:学生表(Student)、课程表(Course)、成绩表(Score)以及教师信息表(Teacher)。 表(提示:在做题目不影响的条件下可以对自己不熟悉的数据类型自己可以适当的做调整。): 表中的数据: 查询问题: 1 1、 查询Student表中的所有记录的Sna 阅读全文
posted @ 2021-07-27 11:28 zheng_newbie 阅读(192) 评论(0) 推荐(0)
摘要: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 阅读(133) 评论(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 阅读(69) 评论(0) 推荐(0)
摘要:echo "abc" > de.txt将内容“abc”重定向覆盖到de.txt中,若de.txt不存在则创建de.txt文件,若存在则将文件中的内容清空,再填充新内容“abc”到文件中echo "abc" >> de.txt将内容“abc”重定向追加到de.txt中,若de.txt不存在则创建de. 阅读全文
posted @ 2021-07-17 14:22 zheng_newbie 阅读(56) 评论(0) 推荐(0)
摘要:关于HashMap的特点 1、HashMap是非线程安全的。 也就是在多线程下,使用HashMap不能保证存储的数据的正确性,也就是会出现多个线程同时操作一个数据,从而导致数据与设想的不一致。 2、HashMap初始化容量为16,每次扩容都是原来容量的两倍,扩容因子为0.75,底层是Hash表(JD 阅读全文
posted @ 2021-07-16 14:08 zheng_newbie 阅读(157) 评论(0) 推荐(0)