创建表和数据

创建class表

  1. create table class (
  2. cid int(11) primary key auto_increment,
  3. caption varchar(32) not null
  4. );
  5. insert into class(caption) values("三年二班"),("三年三班"),("一年二班"),("二年九班");
  6. select * from class;
  7. +-----+--------------+
  8. | cid | caption |
  9. +-----+--------------+
  10. | 1 | 三年二班 |
  11. | 2 | 三年三班 |
  12. | 3 | 一年二班 |
  13. | 4 | 二年九班 |
  14. +-----+--------------+

创建学生表

  1. create table student(
  2. sid int(11) primary key auto_increment,
  3. gender char(1) not null,
  4. class_id int(11) not null,
  5. sname varchar(32) not null,
  6. foreign key(class_id) references class(cid)
  7. );
  8. insert into student values('1', '男', '1', '理解'), ('2', '女', '1', '钢蛋'), ('3', '男', '1', '张三'), ('4', '男', '1', '张一'), ('5', '女', '1', '张二'), ('6', '男', '1', '张四'), ('7', '女', '2', '铁锤'), ('8', '男', '2', '李三'), ('9', '男', '2', '李一'), ('10', '女', '2', '李二'), ('11', '男', '2', '李四'), ('12', '女', '3', '如花'), ('13', '男', '3', '刘三'), ('14', '男', '3', '刘一'), ('15', '女', '3', '刘二'), ('16', '男', '3', '刘四');
  9. select * from student;
  10. +-----+--------+----------+--------+
  11. | sid | gender | class_id | sname |
  12. +-----+--------+----------+--------+
  13. | 1 | | 1 | 理解 |
  14. | 2 | | 1 | 钢蛋 |
  15. | 3 | | 1 | 张三 |
  16. | 4 | | 1 | 张一 |
  17. | 5 | | 1 | 张二 |
  18. | 6 | | 1 | 张四 |
  19. | 7 | | 2 | 铁锤 |
  20. | 8 | | 2 | 李三 |
  21. | 9 | | 2 | 李一 |
  22. | 10 | | 2 | 李二 |
  23. | 11 | | 2 | 李四 |
  24. | 12 | | 3 | 如花 |
  25. | 13 | | 3 | 刘三 |
  26. | 14 | | 3 | 刘一 |
  27. | 15 | | 3 | 刘二 |
  28. | 16 | | 3 | 刘四 |
  29. +-----+--------+----------+--------+

创建老师表

  1. create table teacher(
  2. tid int(11) primary key auto_increment,
  3. tname varchar(32) not null
  4. );
  5. insert into teacher values('1', '张磊老师'), ('2', '李平老师'), ('3', '刘海燕老师'), ('4', '朱云海老师'), ('5', '李杰老师');
  6. select * from teacher;
  7. +-----+-----------------+
  8. | tid | tname |
  9. +-----+-----------------+
  10. | 1 | 张磊老师 |
  11. | 2 | 李平老师 |
  12. | 3 | 刘海燕老师 |
  13. | 4 | 朱云海老师 |
  14. | 5 | 李杰老师 |
  15. +-----+-----------------+

创建课程表

  1. create table course(
  2. cid int(11) primary key auto_increment,
  3. cname varchar(32) not null,
  4. teacher_id int(11) not null,
  5. foreign key(teacher_id) references teacher(tid)
  6. );
  7. insert into course values('1', '生物', '1'), ('2', '物理', '2'), ('3', '体育', '3'), ('4', '美术', '2');
  8. select * from course;
  9. +-----+--------+------------+
  10. | cid | cname | teacher_id |
  11. +-----+--------+------------+
  12. | 1 | 生物 | 1 |
  13. | 2 | 物理 | 2 |
  14. | 3 | 体育 | 3 |
  15. | 4 | 美术 | 2 |
  16. +-----+--------+------------+

创建成绩表

  1. create table score(
  2. sid int(11) primary key auto_increment,
  3. student_id int(11) not null,
  4. course_id int(11) not null,
  5. num int(11) not null,
  6. foreign key(student_id) references student(sid),
  7. foreign key(course_id) references course(cid)
  8. );
  9. insert into score values('1', '1', '1', '10'), ('2', '1', '2', '9'), ('5', '1', '4', '66'), ('6', '2', '1', '8'), ('8', '2', '3', '68'), ('9', '2', '4', '99'), ('10', '3', '1', '77'), ('11', '3', '2', '66'), ('12', '3', '3', '87'), ('13', '3', '4', '99'), ('14', '4', '1', '79'), ('15', '4', '2', '11'), ('16', '4', '3', '67'), ('17', '4', '4', '100'), ('18', '5', '1', '79'), ('19', '5', '2', '11'), ('20', '5', '3', '67'), ('21', '5', '4', '100'), ('22', '6', '1', '9'), ('23', '6', '2', '100'), ('24', '6', '3', '67'), ('25', '6', '4', '100'), ('26', '7', '1', '9'), ('27', '7', '2', '100'), ('28', '7', '3', '67'), ('29', '7', '4', '88'), ('30', '8', '1', '9'), ('31', '8', '2', '100'), ('32', '8', '3', '67'), ('33', '8', '4', '88'), ('34', '9', '1', '91'), ('35', '9', '2', '88'), ('36', '9', '3', '67'), ('37', '9', '4', '22'), ('38', '10', '1', '90'), ('39', '10', '2', '77'), ('40', '10', '3', '43'), ('41', '10', '4', '87'), ('42', '11', '1', '90'), ('43', '11', '2', '77'), ('44', '11', '3', '43'), ('45', '11', '4', '87'), ('46', '12', '1', '90'), ('47', '12', '2', '77'), ('48', '12', '3', '43'), ('49', '12', '4', '87'), ('52', '13', '3', '87');
  10. select * from score;
  11. +-----+------------+-----------+-----+
  12. | sid | student_id | course_id | num |
  13. +-----+------------+-----------+-----+
  14. | 1 | 1 | 1 | 10 |
  15. | 2 | 1 | 2 | 9 |
  16. | 5 | 1 | 4 | 66 |
  17. | 6 | 2 | 1 | 8 |
  18. | 8 | 2 | 3 | 68 |
  19. | 9 | 2 | 4 | 99 |
  20. | 10 | 3 | 1 | 77 |
  21. | 11 | 3 | 2 | 66 |
  22. | 12 | 3 | 3 | 87 |
  23. | 13 | 3 | 4 | 99 |
  24. | 14 | 4 | 1 | 79 |
  25. | 15 | 4 | 2 | 11 |
  26. | 16 | 4 | 3 | 67 |
  27. | 17 | 4 | 4 | 100 |
  28. | 18 | 5 | 1 | 79 |
  29. | 19 | 5 | 2 | 11 |
  30. | 20 | 5 | 3 | 67 |
  31. | 21 | 5 | 4 | 100 |
  32. | 22 | 6 | 1 | 9 |
  33. | 23 | 6 | 2 | 100 |
  34. | 24 | 6 | 3 | 67 |
  35. | 25 | 6 | 4 | 100 |
  36. | 26 | 7 | 1 | 9 |
  37. | 27 | 7 | 2 | 100 |
  38. | 28 | 7 | 3 | 67 |
  39. | 29 | 7 | 4 | 88 |
  40. | 30 | 8 | 1 | 9 |
  41. | 31 | 8 | 2 | 100 |
  42. | 32 | 8 | 3 | 67 |
  43. | 33 | 8 | 4 | 88 |
  44. | 34 | 9 | 1 | 91 |
  45. | 35 | 9 | 2 | 88 |
  46. | 36 | 9 | 3 | 67 |
  47. | 37 | 9 | 4 | 22 |
  48. | 38 | 10 | 1 | 90 |
  49. | 39 | 10 | 2 | 77 |
  50. | 40 | 10 | 3 | 43 |
  51. | 41 | 10 | 4 | 87 |
  52. | 42 | 11 | 1 | 90 |
  53. | 43 | 11 | 2 | 77 |
  54. | 44 | 11 | 3 | 43 |
  55. | 45 | 11 | 4 | 87 |
  56. | 46 | 12 | 1 | 90 |
  57. | 47 | 12 | 2 | 77 |
  58. | 48 | 12 | 3 | 43 |
  59. | 49 | 12 | 4 | 87 |
  60. | 52 | 13 | 3 | 87 |
  61. +-----+------------+-----------+-----+

题目

  1. 查询所有的课程的名称以及对应的任课老师姓名

    1. mysql> select cid,cname,tname from course left join teacher on teacher_id = tid order by cid;
    2. +-----+--------+-----------------+
    3. | cid | cname | tname |
    4. +-----+--------+-----------------+
    5. | 1 | 生物 | 张磊老师 |
    6. | 2 | 物理 | 李平老师 |
    7. | 3 | 体育 | 刘海燕老师 |
    8. | 4 | 美术 | 李平老师 |
    9. +-----+--------+-----------------+
  2. 查询学生表中男女生各有多少人

    1. mysql> select gender,count(*) as total from student group by gender;
    2. +--------+-------+
    3. | gender | total |
    4. +--------+-------+
    5. | | 6 |
    6. | | 10 |
    7. +--------+-------+
  3. 查询物理成绩等于100的学生的姓名

    1. select sname from student join score join course
    2. on
    3. student.sid = student_id and course_id = course.cid
    4. where cname = "物理" and num = 100;
    5. +--------+
    6. | sname |
    7. +--------+
    8. | 张四 |
    9. | 铁锤 |
    10. | 李三 |
    11. +--------+
  4. 查询平均成绩大于八十分的同学的姓名和平均成绩

    1. select sname,sum(num)/4 average_score from student join score
    2. on student_id = student.sid group by sname
    3. having sum(num)/4 > 80;
    4. +--------+---------------+
    5. | sname | average_score |
    6. +--------+---------------+
    7. | 张三 | 82.2500 |
    8. +--------+---------------+
  5. 查询所有学生的学号,姓名,选课数,总成绩

    1. select student.sid as sid,sname,count(*) count_course,sum(num) summary from student left join score on student_id = student.sid group by sname order by student.sid;
    2. +-----+--------+--------------+---------+
    3. | sid | sname | count_course | summary |
    4. +-----+--------+--------------+---------+
    5. | 1 | 理解 | 3 | 85 |
    6. | 2 | 钢蛋 | 3 | 175 |
    7. | 3 | 张三 | 4 | 329 |
    8. | 4 | 张一 | 4 | 257 |
    9. | 5 | 张二 | 4 | 257 |
    10. | 6 | 张四 | 4 | 276 |
    11. | 7 | 铁锤 | 4 | 264 |
    12. | 8 | 李三 | 4 | 264 |
    13. | 9 | 李一 | 4 | 268 |
    14. | 10 | 李二 | 4 | 297 |
    15. | 11 | 李四 | 4 | 297 |
    16. | 12 | 如花 | 4 | 297 |
    17. | 13 | 刘三 | 1 | 87 |
    18. | 14 | 刘一 | 1 | NULL |
    19. | 15 | 刘二 | 1 | NULL |
    20. | 16 | 刘四 | 1 | NULL |
    21. +-----+--------+--------------+---------+
  6. 查询姓李老师的个数

    1. select group_concat(tname) tname,count(*) count from teacher where tname like "李%";
    2. +---------------------------+-------+
    3. | tname | count |
    4. +---------------------------+-------+
    5. | 李平老师,李杰老师 | 2 |
    6. +---------------------------+-------+
  7. 查询没有报李平老师课的学生姓名

    1. select sname from student where sid not in (
    2. select student_id from score where course_id in (
    3. select cid from course where teacher_id in (
    4. select tid from teacher where tname = "李平老师"
    5. )
    6. )
    7. );
    8. +--------+
    9. | sname |
    10. +--------+
    11. | 刘三 |
    12. | 刘一 |
    13. | 刘二 |
    14. | 刘四 |
    15. +--------+
  8. 查询物理课程比生物课程高的学生的学号

    1. select t1.student_id from(
    2. (select * from score where course_id in (select cid from course where cname = '生物')) t1
    3. left join
    4. (select * from score where course_id in (select cid from course where cname = '物理')) t2
    5. on t1.student_id = t2.student_id)
    6. where t1.num < t2.num;
    7. +------------+
    8. | student_id |
    9. +------------+
    10. | 6 |
    11. | 7 |
    12. | 8 |
    13. +------------+
  9. 查询没有同时选修物理课程和体育课程的学生姓名

    1. select sname from student where sid not in (
    2. select student_id from score where course_id in (
    3. select cid from course where cname in ("物理","体育")
    4. ) group by student_id having count(*) = 2
    5. );
    6. +--------+
    7. | sname |
    8. +--------+
    9. | 理解 |
    10. | 钢蛋 |
    11. | 刘三 |
    12. | 刘一 |
    13. | 刘二 |
    14. | 刘四 |
    15. +--------+
  10. 查询挂科超过两门(包括两门)的学生姓名和班级

    1. select sname,caption from student join class on cid = class_id
    2. where sid=(select student_id from score where num < 60 group by student_id having count(*) >= 2);
    3. +--------+--------------+
    4. | sname | caption |
    5. +--------+--------------+
    6. | 理解 | 三年二班 |
    7. +--------+--------------+
  11. 查询选修了所有课程的学生姓名

    1. select sname from student where sid in (
    2. select student_id from score group by student_id having count(*) = 4
    3. );
    4. +--------+
    5. | sname |
    6. +--------+
    7. | 张三 |
    8. | 张一 |
    9. | 张二 |
    10. | 张四 |
    11. | 铁锤 |
    12. | 李三 |
    13. | 李一 |
    14. | 李二 |
    15. | 李四 |
    16. | 如花 |
    17. +--------+
  12. 查询李平老师教的课程的所有成绩记录

    1. select num from score where course_id in (
    2. select cid from course where teacher_id = (
    3. select tid from teacher where tname = "李平老师"
    4. )
    5. );
    6. +-----+
    7. | num |
    8. +-----+
    9. | 9 |
    10. | 66 |
    11. | 11 |
    12. | 11 |
    13. | 100 |
    14. | 100 |
    15. | 100 |
    16. | 88 |
    17. | 77 |
    18. | 77 |
    19. | 77 |
    20. | 66 |
    21. | 99 |
    22. | 99 |
    23. | 100 |
    24. | 100 |
    25. | 100 |
    26. | 88 |
    27. | 88 |
    28. | 22 |
    29. | 87 |
    30. | 87 |
    31. | 87 |
    32. +-----+
  13. 查询全部学生都选修了的课程号和课程名

    1. select cid,cname from course where cid in(
    2. select course_id from score group by course_id having count(*) = 4
    3. );
    4. Empty set (0.00 sec)
  14. 查询每门课程被选修的次数

    1. select cname,count(*) from course join score on cid = course_id group by course_id;
    2. +--------+----------+
    3. | cname | count(*) |
    4. +--------+----------+
    5. | 生物 | 12 |
    6. | 物理 | 11 |
    7. | 体育 | 12 |
    8. | 美术 | 12 |
    9. +--------+----------+
  15. 查询之选修了一门课程的学生姓名和学号

    1. select sname,sid from student where sid in(
    2. select student_id from score group by student_id having count(*) = 1
    3. );
    4. +--------+-----+
    5. | sname | sid |
    6. +--------+-----+
    7. | 刘三 | 13 |
    8. +--------+-----+
  16. 查询所有学生考出的成绩并按从高到低排序(成绩去重)

    1. select distinct num from score order by num desc;
    2. +-----+
    3. | num |
    4. +-----+
    5. | 100 |
    6. | 99 |
    7. | 91 |
    8. | 90 |
    9. | 88 |
    10. | 87 |
    11. | 79 |
    12. | 77 |
    13. | 68 |
    14. | 67 |
    15. | 66 |
    16. | 43 |
    17. | 22 |
    18. | 11 |
    19. | 10 |
    20. | 9 |
    21. | 8 |
    22. +-----+
  17. 查询平均成绩大于85的学生姓名和平均成绩

    1. select sname,avg(num) average_score from student join score
    2. on student_id = student.sid group by sname
    3. having avg(num) > 85;
    4. +--------+---------------+
    5. | sname | average_score |
    6. +--------+---------------+
    7. | 刘三 | 87.0000 |
    8. +--------+---------------+
  18. 查询生物成绩不及格的学生姓名和对应生物分数

    1. select sname,num from student join score on student.sid = student_id
    2. where num < 60 and course_id = (
    3. select cid from course where cname = "生物"
    4. );
    5. +--------+-----+
    6. | sname | num |
    7. +--------+-----+
    8. | 理解 | 10 |
    9. | 钢蛋 | 8 |
    10. | 张四 | 9 |
    11. | 铁锤 | 9 |
    12. | 李三 | 9 |
    13. +--------+-----+
  19. 查询在所有选修了李平老师课程的学生中,这些课程(李平老师的课程,不是所有课程)平均成绩最高的学生姓名

    1. select sname,avg(num) from student join score join course join teacher on
    2. student.sid = student_id and course.cid = course_id and teacher_id = tid where
    3. tname = "李平老师" group by student_id order by avg(num) desc limit 1;
    4. +--------+----------+
    5. | sname | avg(num) |
    6. +--------+----------+
    7. | 张四 | 100.0000 |
    8. +--------+----------+
  20. 查询每门课程成绩最好的前两名学生姓名

    1. (select cname,sname from course join score join student
    2. on course_id = course.cid and student.sid = student_id
    3. where cname = "生物" order by num desc limit 2)
    4. union
    5. (select cname,sname from course join score join student
    6. on course_id = course.cid and student.sid = student_id
    7. where cname = "物理" order by num desc limit 2)
    8. union
    9. (select cname,sname from course join score join student
    10. on course_id = course.cid and student.sid = student_id
    11. where cname = "美术" order by num desc limit 2)
    12. union
    13. (select cname,sname from course join score join student
    14. on course_id = course.cid and student.sid = student_id
    15. where cname = "体育" order by num desc limit 2)
    16. +--------+--------+
    17. | cname | sname |
    18. +--------+--------+
    19. | 生物 | 李一 |
    20. | 生物 | 如花 |
    21. | 物理 | 李三 |
    22. | 物理 | 铁锤 |
    23. | 美术 | 张四 |
    24. | 美术 | 张二 |
    25. | 体育 | 刘三 |
    26. | 体育 | 张三 |
    27. +--------+--------+
  21. 查询不同课程但成绩相同的学号,课程号,成绩

    1. select distinct s1.course_id,s2.course_id,s1.num,s2.num from score as s1, score as s2 where s1.num = s2.num and s1.course_id != s2.course_id;
    2. +-----------+-----------+-----+-----+
    3. | course_id | course_id | num | num |
    4. +-----------+-----------+-----+-----+
    5. | 1 | 2 | 9 | 9 |
    6. | 2 | 4 | 66 | 66 |
    7. | 2 | 1 | 77 | 77 |
    8. | 4 | 2 | 66 | 66 |
    9. | 4 | 3 | 87 | 87 |
    10. | 2 | 4 | 100 | 100 |
    11. | 2 | 1 | 9 | 9 |
    12. | 4 | 2 | 100 | 100 |
    13. | 2 | 4 | 88 | 88 |
    14. | 4 | 2 | 88 | 88 |
    15. | 1 | 2 | 77 | 77 |
    16. | 3 | 4 | 87 | 87 |
    17. +-----------+-----------+-----+-----+
  22. 查询没学过“叶平”老师课程的学生姓名以及选修的课程名称;

    1. select sname,cname from student join score join course on
    2. student.sid = student_id and course.cid = course_id
    3. where student.sid not in (
    4. select distinct student_id from score where course_id in(
    5. select cid from course where teacher_id in (
    6. select tid from teacher where tname = "李平老师"
    7. )
    8. )
    9. );
    10. +--------+--------+
    11. | sname | cname |
    12. +--------+--------+
    13. | 刘三 | 体育 |
    14. +--------+--------+
  23. 查询所有选修了学号为1的同学选修过的一门或者多门课程的同学学号和姓名;

    1. select sid,sname from student where sid in (
    2. select student_id from score where course_id in(
    3. select course_id from score where student_id = 1
    4. )
    5. );
    6. +-----+--------+
    7. | sid | sname |
    8. +-----+--------+
    9. | 1 | 理解 |
    10. | 2 | 钢蛋 |
    11. | 3 | 张三 |
    12. | 4 | 张一 |
    13. | 5 | 张二 |
    14. | 6 | 张四 |
    15. | 7 | 铁锤 |
    16. | 8 | 李三 |
    17. | 9 | 李一 |
    18. | 10 | 李二 |
    19. | 11 | 李四 |
    20. | 12 | 如花 |
    21. +-----+--------+
  24. 任课最多的老师中学生单科成绩最高的学生姓名

    1. select sname from student join score join course on student_id = student.sid and course_id = cid where teacher_id = (
    2. select teacher_id from (select teacher_id,count(*) as total from course group by teacher_id order by total desc limit 1) as t
    3. )
    4. group by course_id having max(num);

MySQL练手小试题的更多相关文章

  1. 【Python】【辅助程序】练手小程序:记录外网动态IP地址

    练手小程序 程序作用:对IP实时记录: 1.定时获取外网IP,存储在本地文件中: 编写思路: 1)收集获取外网的API接口       http://bbs.125.la/thread-1383897 ...

  2. 【Python精华】100个Python练手小程序

    100个Python练手小程序,学习python的很好的资料,覆盖了python中的每一部分,可以边学习边练习,更容易掌握python. [程序1] 题目:有1.2.3.4个数字,能组成多少个互不相同 ...

  3. 整理了适合新手的20个Python练手小程序

    100个Python练手小程序,学习python的很好的资料,覆盖了python中的每一部分,可以边学习边练习,更容易掌握python. 本文附带基础视频教程:私信回复[基础]就可以获取的 [程序1] ...

  4. 初始Spring MVC——练手小项目

    初始Spring MVC 前几天开始了我的spring学习之旅,由于之前使用过MVC模式来做项目,所以我先下手的是 Spring MVC,做个练手项目,非常简单 项目介绍: 用户输入信息 -> ...

  5. vue练手小项目--眼镜在线试戴

    最近看到了一个眼镜在线试戴小项目使用纯js手写的,本人刚学习vue.js没多久,便试试用vue做做看了,还没完善. 其中包括初始图片加载,使用keywords查找,父子组件之间传递信息,子组件之间传递 ...

  6. Spring+Mybatis整合的练手小项目(一)项目部署

    声明:教程是网上找的,代码是自己敲的 项目目录大致如下: 1. 首先创建Maven工程,在pom.xml中加入项目所需依赖: <?xml version="1.0" enco ...

  7. 前端练手小项目——网页版qq音乐仿写

    qq音乐网页版仿写 一些步骤与注意事项 一开始肯定就是html+css布局和页面了,这段特别耗时间,耐心写完就好了 首先要说一下大致流程: 一定要先布局html!,所以一定要先分析页面布局情况,用不同 ...

  8. 练手小游戏(代码篇之敌人AI

    诶呀~又没有更新微博,去拔牙了,疼死了,休息了几天过来接着写代码~ 首先是Base.写了一个框架,照别人扒的. Base分三部分,AILocomotion(AI移动),Steering(行为基类),V ...

  9. 开源一个练手小App, PrintableCheckList

    A small but powerful App, only focus on one thing, make you easy to print out your checklist. It is ...

随机推荐

  1. BZOJ 1758: [Wc2010]重建计划 01分数规划+点分治+单调队列

    code: #include <bits/stdc++.h> using namespace std; #define setIO(s) freopen(s".in", ...

  2. Linux运维相关命令

    df 查看磁盘空间大小 df命令是linux系统以磁盘分区为单位查看文件系统,可以加上参数查看磁盘剩余空间信息,命令格式: df -hl 显示格式为: 文件系统              容量 已用  ...

  3. High scalability with Fanout and Fastly

    转自:http://blog.fanout.io/2017/11/15/high-scalability-fanout-fastly/ Fanout Cloud is for high scale d ...

  4. 原创:logistic regression实战(一):SGD Without lasso

    logistic regression是分类算法中非常重要的算法,也是非常基础的算法.logistic regression从整体上考虑样本预测的精度,用判别学习模型的条件似然进行参数估计,假设样本遵 ...

  5. GoCN每日新闻(2019-10-13)

    GoCN每日新闻(2019-10-13) 1. 通过测试学习Go语言 https://mp.weixin.qq.com/s/MGT_yoP_NdWVGpwlAJFK4A2. go panic reco ...

  6. 【Codeforces】CF367D Sereja and Sets (数学)

    题目大意 1到n这n个正整数被分成了m个不相交的集合(集合不一定连续),现在从这m个集合中选出最少个数的集合,满足对于[1,n]中任意一个长度为d的区间都至少有一个数字出现在已选集合中.(1 < ...

  7. 第09组 Alpha冲刺(2/4)

    队名:软工9组 组长博客:https://www.cnblogs.com/cmlei/ 作业博客:http://edu.cnblogs.com/campus/fzu/SoftwareEngineeri ...

  8. 网易云音乐MP3外链地址

      网易云音乐MP3外链地址下载方法很简单的方法: 下载公式:http://music.163.com/song/media/outer/url?id=ID数字.mp3 把上面红色部分(ID数字)换成 ...

  9. qemu-img convert -c disk /var/lib/nova/instances/_base/94a107318b54108fc8e76fff21a86d7c390a20bf -O qcow2 hebin.qcow2

  10. PG11开启WAL归档

    -创建归档目录 mkdir -p $PGDATA/archive_wals chown -R postgres.postgres $PGDATA/archive_wals -修改参数(在配置文件中配置 ...