MySQL collapse 8: regular matching of queries

Weng Zhihua 2020-11-10 12:23:06
mysql collapse regular matching queries


summary

Last chapter The filter conditions of the query , We get it MySQL Can pass like %  Wildcards are used for fuzzy matching . alike , It also supports other regular expression matching , We are MySQL Use in REGEXP Operator for regular expression matching . Usage and like phase

like , But it's a lot more powerful , Can achieve some very special 、 Complex rule matching . Regular expressions use REGEXP When the command matches , If it matches, return 1, Do not conform to return 0. If No matching rules are added by default REGEXP amount to like '%%'. Add in front NOT(NOT REGEXP) amount to NOT LIKE.

Matching pattern analysis

Here's a table , List the possible applications of REGEXP Regular matching patterns in operators , The description is relatively detailed , We'll test it one by one later .

Matching mode

describe

^

Matches the start of the input string . If set  REGEXP  Object's Multiline attribute ,^ Also match '\n' or '\r' The position after .

$

Matches the end of the input string . If set REGEXP  Object's Multiline attribute ,$ Also match '\n' or '\r' Previous position .

.

Matching elimination "\n" Any single character other than . To match includes '\n' Any character inside , Please use '[.\n]' The pattern of .

[….]

Character set . Matches any of the contained characters . for example , '[abc]' Can match "plain" Medium 'a'.

[^...]

Unmatched character set . Match any character not included . for example , '[^abc]' Can match "plain" Medium 'p'.

[n-m]

matching m To n Between any single character , for example [0-9],[a-z],[A-Z]

*

Match previous subexpression zero or more times . for example ,a* Can match "a" as well as "ab".* Equivalent to {0,}.

+

Match previous subexpression one or more times . for example ,'a+' Can match "ab" as well as "abc", But can't match "a".+ Equivalent to {1,}.

?

Match previous subexpression one or more times . for example ,'a?' Can match "ab" as well as "a".? Equivalent to {0,1}.

a1| a2|a3

matching a1 or a2 or a3. for example ,'z|food' Can match "z" or "food".'(z|f)ood' The match "zood" or "food".

{n}

n Is a non negative integer . Matched definite n Time . for example ,'o{2}' Can't match "Bob" Medium 'o', But it matches "food" Two of them o.

{n,}

Match the previous subexpression n Times to times . for example ,'o{2,}' Not only can it match "food" , It can match "foood".

{n,m}

n and m All non negative integers , among n <= m. Least match n Times and at most m Time .

{,m}

Match the previous subexpression 0 Time to m Time

(….)

Combination of elements , That is, the pattern elements form a single element , for example (do)* It means match 0 More or more do

 

Matching mode ^

Match from the first part of a string , This way it matches s At the beginning , Match match return 1, Do not conform to return 0. Apply to the table , It is consistent with the returned matching data .

 1 mysql> select 'selina' REGEXP '^s';
 2 +----------------------+
 3 | 'selina' REGEXP '^s' |
 4 +----------------------+
 5 | 1 |
 6 +----------------------+
 7 1 row in set
 8
 9 mysql> select 'aelina' REGEXP '^s';
10 +----------------------+
11 | 'aelina' REGEXP '^s' |
12 +----------------------+
13 | 0 |
14 +----------------------+
15 1 row in set
 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 +----+--------+-----+----------+-----+
11 5 rows in set
12
13 mysql> select * from user2 where name REGEXP '^s';
14 +----+--------+-----+---------+-----+
15 | id | name | age | address | sex |
16 +----+--------+-----+---------+-----+
17 | 3 | sol | 21 | xiamen | 0 |
18 | 5 | selina | 25 | NULL | 0 |
19 +----+--------+-----+---------+-----+
20 2 rows in set

Matching mode $

Match from the end of a string , Match the name here with d Data at the end .

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 +----+--------+-----+----------+-----+
11 5 rows in set
12
13 mysql> select * from user2 where name REGEXP 'd$';
14 +----+-------+-----+---------+-----+
15 | id | name | age | address | sex |
16 +----+-------+-----+---------+-----+
17 | 1 | brand | 21 | fuzhou | 1 |
18 +----+-------+-----+---------+-----+
19 1 row in set 

Matching mode .

. Is to match any single character , The following script matches n And the condition followed by an arbitrary character

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 +----+--------+-----+----------+-----+
11 5 rows in set
12
13 mysql> select * from user2 where name REGEXP 'n.';
14 +----+--------+-----+---------+-----+
15 | id | name | age | address | sex |
16 +----+--------+-----+---------+-----+
17 | 1 | brand | 21 | fuzhou | 1 |
18 | 4 | weng | 33 | guizhou | 1 |
19 | 5 | selina | 25 | NULL | 0 |
20 +----+--------+-----+---------+-----+
21 3 rows in set

Matching mode [...]

Refers to matching any single character in parentheses , As long as one character meets the criteria . The following example matches b、w、z Of Only brand、weng Two names .

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 +----+--------+-----+----------+-----+
11 5 rows in set
12
13 mysql> select * from user2 where name REGEXP [bwz];
14 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[bwz]' at line 1
15 mysql> select * from user2 where name REGEXP '[bwz]';
16 +----+-------+-----+---------+-----+
17 | id | name | age | address | sex |
18 +----+-------+-----+---------+-----+
19 | 1 | brand | 21 | fuzhou | 1 |
20 | 4 | weng | 33 | guizhou | 1 |
21 +----+-------+-----+---------+-----+
22 2 rows in set 

Matching mode [^...] 

[^...] The meaning of taking the opposite , Refers to matching any character that is not included . for example , '[^brand]' Can match "helen" Medium 'h',"sol" Of "s","weng" Of "w","selina" Of "s", But it doesn't match "brand", So it's filtered out .

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 +----+--------+-----+----------+-----+
11 5 rows in set
12
13 mysql> select * from user2 where name REGEXP '[^brand]';
14 +----+--------+-----+----------+-----+
15 | id | name | age | address | sex |
16 +----+--------+-----+----------+-----+
17 | 2 | helen | 20 | quanzhou | 0 |
18 | 3 | sol | 21 | xiamen | 0 |
19 | 4 | weng | 33 | guizhou | 1 |
20 | 5 | selina | 25 | NULL | 0 |
21 +----+--------+-----+----------+-----+
22 4 rows in set

Matching mode [n-m]

matching m To n Between any single character , for example [0-9],[a-z],[A-Z], In the code below , Any element is not in a - e Between "sol" The filtered .

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 +----+--------+-----+----------+-----+
11 5 rows in set
12
13 mysql> select * from user2 where name REGEXP '[a-e]';
14 +----+--------+-----+----------+-----+
15 | id | name | age | address | sex |
16 +----+--------+-----+----------+-----+
17 | 1 | brand | 21 | fuzhou | 1 |
18 | 2 | helen | 20 | quanzhou | 0 |
19 | 4 | weng | 33 | guizhou | 1 |
20 | 5 | selina | 25 | NULL | 0 |
21 +----+--------+-----+----------+-----+
22 4 rows in set

Matching mode *

Match previous subexpression zero or more times . for example ,a* Can match "a" as well as "ab".* Equivalent to {0,}. Below "e*g" All that can be matched is "weng" The name .
 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 +----+--------+-----+----------+-----+
11 5 rows in set
12
13 mysql> select * from user2 where name REGEXP 'e*g';
14 +----+------+-----+---------+-----+
15 | id | name | age | address | sex |
16 +----+------+-----+---------+-----+
17 | 4 | weng | 33 | guizhou | 1 |
18 +----+------+-----+---------+-----+
19 1 row in set 

Matching mode +

Match previous subexpression one or more times . for example ,'a+' Can match "ab" as well as "abc", But can't match "a".+ Equivalent to {1,}. Like the script below , What meets the conditions is 1 To multiple n Add a d The combination of , Only "brand" and "annd" accord with .

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 | 6 | anny | 23 | shanghai | 0 |
11 | 7 | annd | 24 | shanghai | 1 |
12 +----+--------+-----+----------+-----+
13 7 rows in set
14
15 mysql> select * from user2 where name REGEXP 'n+d';
16 +----+-------+-----+----------+-----+
17 | id | name | age | address | sex |
18 +----+-------+-----+----------+-----+
19 | 1 | brand | 21 | fuzhou | 1 |
20 | 7 | annd | 24 | shanghai | 1 |
21 +----+-------+-----+----------+-----+
22 2 rows in set

Matching mode ?

Match previous subexpression one or more times . for example ,'a?' Can match "ab" as well as "a".? Equivalent to {0,1}.e by 1 A or 0 individual , Use it later l Limit , So there are only three .

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 | 6 | anny | 23 | shanghai | 0 |
11 | 7 | annd | 24 | shanghai | 1 |
12 +----+--------+-----+----------+-----+
13 7 rows in set
14
15 mysql> select * from user2 where name REGEXP 'e?l';
16 +----+--------+-----+----------+-----+
17 | id | name | age | address | sex |
18 +----+--------+-----+----------+-----+
19 | 2 | helen | 20 | quanzhou | 0 |
20 | 3 | sol | 21 | xiamen | 0 |
21 | 5 | selina | 25 | NULL | 0 |
22 +----+--------+-----+----------+-----+
23 3 rows in set 

Matching mode a1| a2|a3

matching a1 or a2 or a3. For example, below ,'nn|en' Can be matched to "anny" 、"annd" and "helen"、"weng".

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 | 6 | anny | 23 | shanghai | 0 |
11 | 7 | annd | 24 | shanghai | 1 |
12 +----+--------+-----+----------+-----+
13 7 rows in set
14
15 mysql> select * from user2 where name REGEXP 'nn|en';
16 +----+-------+-----+----------+-----+
17 | id | name | age | address | sex |
18 +----+-------+-----+----------+-----+
19 | 2 | helen | 20 | quanzhou | 0 |
20 | 4 | weng | 33 | guizhou | 1 |
21 | 6 | anny | 23 | shanghai | 0 |
22 | 7 | annd | 24 | shanghai | 1 |
23 +----+-------+-----+----------+-----+
24 4 rows in set

Matching mode {n} {n,} {n,m} {,m} 

 n and m All non negative integers , among n <= m. Least match n Times and at most m Time .m Blank means >=n Any number of ,n Blank means 0.

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 | 6 | anny | 23 | shanghai | 0 |
11 | 7 | annd | 24 | shanghai | 1 |
12 +----+--------+-----+----------+-----+
13 7 rows in set
14
15 mysql> select * from user2 where name REGEXP 'n{2}';
16 +----+------+-----+----------+-----+
17 | id | name | age | address | sex |
18 +----+------+-----+----------+-----+
19 | 6 | anny | 23 | shanghai | 0 |
20 | 7 | annd | 24 | shanghai | 1 |
21 +----+------+-----+----------+-----+
22 2 rows in set
23
24 mysql> select * from user2 where name REGEXP 'n{1,2}';
25 +----+--------+-----+----------+-----+
26 | id | name | age | address | sex |
27 +----+--------+-----+----------+-----+
28 | 1 | brand | 21 | fuzhou | 1 |
29 | 2 | helen | 20 | quanzhou | 0 |
30 | 4 | weng | 33 | guizhou | 1 |
31 | 5 | selina | 25 | NULL | 0 |
32 | 6 | anny | 23 | shanghai | 0 |
33 | 7 | annd | 24 | shanghai | 1 |
34 +----+--------+-----+----------+-----+
35 6 rows in set
36
37 mysql> select * from user2 where name REGEXP 'l{1,}';
38 +----+--------+-----+----------+-----+
39 | id | name | age | address | sex |
40 +----+--------+-----+----------+-----+
41 | 2 | helen | 20 | quanzhou | 0 |
42 | 3 | sol | 21 | xiamen | 0 |
43 | 5 | selina | 25 | NULL | 0 |
44 +----+--------+-----+----------+-----+
45 3 rows in set

Matching mode (...) 

Let's assume that the brackets are abc, Will be abc Match as a whole , Data that meets this rule is filtered out . Let's say an As an example , Combined with the knowledge learned above .

 1 mysql> select * from user2;
 2 +----+--------+-----+----------+-----+
 3 | id | name | age | address | sex |
 4 +----+--------+-----+----------+-----+
 5 | 1 | brand | 21 | fuzhou | 1 |
 6 | 2 | helen | 20 | quanzhou | 0 |
 7 | 3 | sol | 21 | xiamen | 0 |
 8 | 4 | weng | 33 | guizhou | 1 |
 9 | 5 | selina | 25 | NULL | 0 |
10 | 6 | anny | 23 | shanghai | 0 |
11 | 7 | annd | 24 | shanghai | 1 |
12 +----+--------+-----+----------+-----+
13 7 rows in set
14
15 mysql> select * from user2 where name REGEXP '(an)+';
16 +----+-------+-----+----------+-----+
17 | id | name | age | address | sex |
18 +----+-------+-----+----------+-----+
19 | 1 | brand | 21 | fuzhou | 1 |
20 | 6 | anny | 23 | shanghai | 0 |
21 | 7 | annd | 24 | shanghai | 1 |
22 +----+-------+-----+----------+-----+
23 3 rows in set
24
25 mysql> select * from user2 where name REGEXP '(ann)+';
26 +----+------+-----+----------+-----+
27 | id | name | age | address | sex |
28 +----+------+-----+----------+-----+
29 | 6 | anny | 23 | shanghai | 0 |
30 | 7 | annd | 24 | shanghai | 1 |
31 +----+------+-----+----------+-----+
32 2 rows in set
33
34 mysql> select * from user2 where name REGEXP '(an).*d{1,2}';
35 +----+-------+-----+----------+-----+
36 | id | name | age | address | sex |
37 +----+-------+-----+----------+-----+
38 | 1 | brand | 21 | fuzhou | 1 |
39 | 7 | annd | 24 | shanghai | 1 |
40 +----+-------+-----+----------+-----+
41 2 rows in set

Match special character \\

Regular expression languages consist of special characters with specific meanings . We've seen .[]|、*、+  etc. , So how do we match these characters . The following example , We use \\ Come on Match special character ,\\ As the leader , \\- Expression lookup -, \\. Expression lookup ..

 1 mysql> select * from user3;
 2 +----+------+-------+
 3 | id | age | name |
 4 +----+------+-------+
 5 | 1 | 20 | brand |
 6 | 2 | 22 | sol |
 7 | 3 | 20 | helen |
 8 | 4 | 19.5 | diny |
 9 +----+------+-------+
10 4 rows in set
11
12 mysql> select * from user3 where age REGEXP '[0-9]+\\.[0-9]+';
13 +----+------+------+
14 | id | age | name |
15 +----+------+------+
16 | 4 | 19.5 | diny |
17 +----+------+------+
18 1 row in set 

summary

1. When we need to match data with regular rules , have access to REGEXP and NOT REGEXP The operator ( similar LIKE and NOT LIKE);

2.REGEXP Case insensitive by default , have access to BINARY Keywords are case sensitive ; WHERE NAME REGEXP BINARY ‘^[A-Z]’;

3.REGEXP The default is the partial matching principle , If there is a match, it returns true . for example :SELECT  'A123' REGEXP BINARY '[A-Z]', The return is 1;

4、 If you use () Match , It is to match the contents inside the brackets as a whole , such as (ABC), You need to match the whole ABC.

5、 This is just about introducing regular Basic knowledge of , For a more thorough understanding, you can refer to Regular tutorial  , I think it's good .

版权声明
本文为[Weng Zhihua]所创,转载请带上原文链接,感谢

  1. 【计算机网络 12(1),尚学堂马士兵Java视频教程
  2. 【程序猿历程,史上最全的Java面试题集锦在这里
  3. 【程序猿历程(1),Javaweb视频教程百度云
  4. Notes on MySQL 45 lectures (1-7)
  5. [computer network 12 (1), Shang Xuetang Ma soldier java video tutorial
  6. The most complete collection of Java interview questions in history is here
  7. [process of program ape (1), JavaWeb video tutorial, baidu cloud
  8. Notes on MySQL 45 lectures (1-7)
  9. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  10. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  11. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  12. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  13. 【递归,Java传智播客笔记
  14. [recursion, Java intelligence podcast notes
  15. [adhere to painting for 386 days] the beginning of spring of 24 solar terms
  16. K8S系列第八篇(Service、EndPoints以及高可用kubeadm部署)
  17. K8s Series Part 8 (service, endpoints and high availability kubeadm deployment)
  18. 【重识 HTML (3),350道Java面试真题分享
  19. 【重识 HTML (2),Java并发编程必会的多线程你竟然还不会
  20. 【重识 HTML (1),二本Java小菜鸟4面字节跳动被秒成渣渣
  21. [re recognize HTML (3) and share 350 real Java interview questions
  22. [re recognize HTML (2). Multithreading is a must for Java Concurrent Programming. How dare you not
  23. [re recognize HTML (1), two Java rookies' 4-sided bytes beat and become slag in seconds
  24. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  25. RPC 1: how to develop RPC framework from scratch
  26. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  27. RPC 1: how to develop RPC framework from scratch
  28. 一次性捋清楚吧,对乱糟糟的,Spring事务扩展机制
  29. 一文彻底弄懂如何选择抽象类还是接口,连续四年百度Java岗必问面试题
  30. Redis常用命令
  31. 一双拖鞋引发的血案,狂神说Java系列笔记
  32. 一、mysql基础安装
  33. 一位程序员的独白:尽管我一生坎坷,Java框架面试基础
  34. Clear it all at once. For the messy, spring transaction extension mechanism
  35. A thorough understanding of how to choose abstract classes or interfaces, baidu Java post must ask interview questions for four consecutive years
  36. Redis common commands
  37. A pair of slippers triggered the murder, crazy God said java series notes
  38. 1、 MySQL basic installation
  39. Monologue of a programmer: despite my ups and downs in my life, Java framework is the foundation of interview
  40. 【大厂面试】三面三问Spring循环依赖,请一定要把这篇看完(建议收藏)
  41. 一线互联网企业中,springboot入门项目
  42. 一篇文带你入门SSM框架Spring开发,帮你快速拿Offer
  43. 【面试资料】Java全集、微服务、大数据、数据结构与算法、机器学习知识最全总结,283页pdf
  44. 【leetcode刷题】24.数组中重复的数字——Java版
  45. 【leetcode刷题】23.对称二叉树——Java版
  46. 【leetcode刷题】22.二叉树的中序遍历——Java版
  47. 【leetcode刷题】21.三数之和——Java版
  48. 【leetcode刷题】20.最长回文子串——Java版
  49. 【leetcode刷题】19.回文链表——Java版
  50. 【leetcode刷题】18.反转链表——Java版
  51. 【leetcode刷题】17.相交链表——Java&python版
  52. 【leetcode刷题】16.环形链表——Java版
  53. 【leetcode刷题】15.汉明距离——Java版
  54. 【leetcode刷题】14.找到所有数组中消失的数字——Java版
  55. 【leetcode刷题】13.比特位计数——Java版
  56. oracle控制用户权限命令
  57. 三年Java开发,继阿里,鲁班二期Java架构师
  58. Oracle必须要启动的服务
  59. 万字长文!深入剖析HashMap,Java基础笔试题大全带答案
  60. 一问Kafka就心慌?我却凭着这份,图灵学院vip课程百度云