[MYAQL / Mariadb] 数据库学习-管理表记录2:匹配条件

news2024/12/27 13:48:27

管理表记录-匹配条件

  • 匹配条件
    • 基本条件
      • 查询
      • 逻辑匹配(多个条件判断)
    • 高级条件
      • 范围匹配
      • 模糊查询
      • 正则表达式: regexp
      • 四则运算
    • 操作查询结果(对查找到的数据再做处理)
      • 排序
      • 分组(一样的显示一次): 查询语句 group by 字段;![请添加图片描述](https://img-blog.csdnimg.cn/ab0ca2d75d9040a2a8f0b5610f5c9a2d.png)
      • 去重 distinct(部分实现无法由group完成)
    • 聚集函数(MySQL自带的对数据统计的命令)
      • null 空,在统计个数时,算无数据不会计入,所以这里gid才会是5.
      • 查询结果过滤
      • 限制查询结果显示行数

匹配条件

基本条件.
数值匹配
逻辑匹配

.
高级条件
范围匹配
模糊查询

基本条件

请添加图片描述

请添加图片描述

查询

mysql> select id,name,uid,gid from user where uid != gid;
+----+------------------+------+------+
| id | name             | uid  | gid  |
+----+------------------+------+------+
|  4 | adm              |    3 |    4 |
|  5 | lp               |    4 |    7 |
|  6 | sync             |    5 |    0 |
|  7 | shutdown         |    6 |    0 |
|  8 | halt             |    7 |    0 |
|  9 | mail             |    8 |   12 |
| 10 | operator         |   11 |    0 |
| 11 | games            |   12 |  100 |
| 12 | ftp              |   14 |   50 |
| 15 | systemd-coredump |  999 |  997 |
| 18 | polkitd          |  998 |  996 |
| 19 | unbound          |  997 |  995 |
| 20 | sssd             |  996 |  993 |
| 22 | rngd             |  995 |  992 |
| 30 | bob              | 2023 | 2020 |
| 31 | tom              | 2023 | 2020 |
| 32 | bob              | 2023 | 2020 |
| 33 | lisi             | 2023 | 2020 |
| 34 | susan            | 2023 | 2020 |
+----+------------------+------+------+
19 rows in set (0.01 sec)

mysql> select id,name,uid,gid from user where name='bob';
+----+------+------+------+
| id | name | uid  | gid  |
+----+------+------+------+
| 30 | bob  | 2023 | 2020 |
| 32 | bob  | 2023 | 2020 |
+----+------+------+------+
2 rows in set (0.00 sec)

mysql> select id,name,uid,gid from user where name is null;
Empty set (0.00 sec)

mysql> select id,name,uid,gid from user where gid is not null;
+----+------------------+-------+-------+
| id | name             | uid   | gid   |
+----+------------------+-------+-------+
|  1 | root             |     0 |     0 |
|  2 | bin              |     1 |     1 |
|  3 | daemon           |     2 |     2 |
|  4 | adm              |     3 |     4 |
|  5 | lp               |     4 |     7 |
|  6 | sync             |     5 |     0 |
|  7 | shutdown         |     6 |     0 |
|  8 | halt             |     7 |     0 |
|  9 | mail             |     8 |    12 |
| 10 | operator         |    11 |     0 |
| 11 | games            |    12 |   100 |
| 12 | ftp              |    14 |    50 |

逻辑匹配(多个条件判断)

逻辑与: and,多个同时成立
.
逻辑或: or,多个中有成立的即可
.
逻辑非: ! , not ,取反

mysql> select id,name,uid from user  where id >= 20  and uid = 2023;
+----+-------+------+
| id | name  | uid  |
+----+-------+------+
| 30 | bob   | 2023 |
| 31 | tom   | 2023 |
| 32 | bob   | 2023 |
| 33 | lisi  | 2023 |
| 34 | susan | 2023 |
+----+-------+------+
5 rows in set (0.00 sec)

mysql> select id,name,uid from user  where id >= 20  and uid != 2023;
+----+--------+------+
| id | name   | uid  |
+----+--------+------+
| 20 | sssd   |  996 |
| 21 | sshd   |   74 |
| 22 | rngd   |  995 |
| 23 | alice  | 1000 |
| 24 | apache |   48 |
| 25 | mysql  | 1001 |
+----+--------+------+
6 rows in set (0.00 sec)



mysql> select id,name,uid from user  where id >= 20  or uid <=5  or name='lisi';
+----+--------+------+
| id | name   | uid  |
+----+--------+------+
|  1 | root   |    0 |
|  2 | bin    |    1 |
|  3 | daemon |    2 |
|  4 | adm    |    3 |
|  5 | lp     |    4 |
|  6 | sync   |    5 |
| 20 | sssd   |  996 |
| 21 | sshd   |   74 |
| 22 | rngd   |  995 |
| 23 | alice  | 1000 |
| 24 | apache |   48 |
| 25 | mysql  | 1001 |
| 30 | bob    | 2023 |
| 31 | tom    | 2023 |
| 32 | bob    | 2023 |
| 33 | lisi   | 2023 |
| 34 | susan  | 2023 |
+----+--------+------+
17 rows in set (0.00 sec)


高级条件

范围匹配

请添加图片描述

mysql> select id,name,uid from user where uid in (1,20,50,100) ;                               +----+------+------+
| id | name | uid  |
+----+------+------+
|  2 | bin  |    1 |
+----+------+------+
1 row in set (0.01 sec)



mysql> select id,name,shell from user where shell not in ('/bin/bash','/sbin/nologin');
+----+----------+----------------+
| id | name     | shell          |
+----+----------+----------------+
|  6 | sync     | /bin/sync      |
|  7 | shutdown | /sbin/shutdown |
|  8 | halt     | /sbin/halt     |
+----+----------+----------------+
3 rows in set (0.00 sec)


mysql> select uid,name,shell from user where uid between 2000 and 2023;
+------+-------+-----------+
| uid  | name  | shell     |
+------+-------+-----------+
| 2023 | bob   | /bin/bash |
| 2023 | tom   | /bin/bash |
| 2023 | bob   | /bin/bash |
| 2023 | lisi  | NULL      |
| 2023 | susan | NULL      |
+------+-------+-----------+
5 rows in set (0.00 sec)

模糊查询

请添加图片描述

mysql> select uid,name,shell from user where name like '__%___';
+-------+------------------+----------------+
| uid   | name             | shell          |
+-------+------------------+----------------+
|     2 | daemon           | /sbin/nologin  |
|     6 | shutdown         | /sbin/shutdown |
|    11 | operator         | /sbin/nologin  |
|    12 | games            | /sbin/nologin  |
| 65534 | nobody           | /sbin/nologin  |
|   999 | systemd-coredump | /sbin/nologin  |
|   193 | systemd-resolve  | /sbin/nologin  |
|   998 | polkitd          | /sbin/nologin  |
|   997 | unbound          | /sbin/nologin  |
|  1000 | alice            | /bin/bash      |
|    48 | apache           | /sbin/nologin  |
|  1001 | mysql            | /bin/bash      |
|  2023 | susan            | NULL           |
+-------+------------------+----------------+
13 rows in set (0.00 sec)



mysql> select uid,name,shell from user where name like '___';
+------+------+---------------+
| uid  | name | shell         |
+------+------+---------------+
|    1 | bin  | /sbin/nologin |
|    3 | adm  | /sbin/nologin |
|   14 | ftp  | /sbin/nologin |
|   59 | tss  | /sbin/nologin |
| 2023 | bob  | /bin/bash     |
| 2023 | tom  | /bin/bash     |
| 2023 | bob  | /bin/bash     |
+------+------+---------------+
7 rows in set (0.00 sec)


mysql> select uid,name,shell from user where name like '%b%';
+-------+---------+---------------+
| uid   | name    | shell         |
+-------+---------+---------------+
|     1 | bin     | /sbin/nologin |
| 65534 | nobody  | /sbin/nologin |
|    81 | dbus    | /sbin/nologin |
|   997 | unbound | /sbin/nologin |
|  2023 | bob     | /bin/bash     |
|  2023 | bob     | /bin/bash     |
+-------+---------+---------------+
6 rows in set (0.00 sec)

正则表达式: regexp

^ :匹配开头
$ :匹配结尾
. : 匹配任意单个
[ ] :匹配范围内的

  • : 匹配前面一个的内容,任意多个
    | : 或者

请添加图片描述

mysql> select uid,name from user where name regexp '^b|m$';
+------+------+
| uid  | name |
+------+------+
|    1 | bin  |
|    3 | adm  |
| 2023 | bob  |
| 2023 | tom  |
| 2023 | bob  |
+------+------+
5 rows in set (0.00 sec)


mysql> select uid,name from user where name regexp 'd$';
+------+---------+
| uid  | name    |
+------+---------+
|  998 | polkitd |
|  997 | unbound |
|  996 | sssd    |
|   74 | sshd    |
|  995 | rngd    |
+------+---------+
5 rows in set (0.00 sec)


开头在ablt中的名字
mysql> select uid,name from user where name regexp '^[ablt]';
+------+--------+
| uid  | name   |
+------+--------+
|    1 | bin    |
|    3 | adm    |
|    4 | lp     |
|   59 | tss    |
| 1000 | alice  |
|   48 | apache |
| 2023 | bob    |
| 2023 | tom    |
| 2023 | bob    |
| 2023 | lisi   |
+------+--------+
10 rows in set (0.00 sec)


b开头b结尾,匹配多个字符
mysql> select uid,name from user where name regexp '^b.*b$';
+------+---------+
| uid  | name    |
+------+---------+
| 2023 | bob     |
| 2023 | bob     |
| 1999 | baobob  |
| 2021 | bilib   |
| 2021 | baibaib |
+------+---------+
5 rows in set (0.00 sec)


b开头b结尾,匹配多一个字符
mysql> select uid,name from user where name regexp '^b.b$';
+------+------+
| uid  | name |
+------+------+
| 2023 | bob  |
| 2023 | bob  |
+------+------+
2 rows in set (0.00 sec)

起码名字字长为5个字符及以上
mysql> select name from user where name regexp '.....';
+------------------+
| name             |
+------------------+
| daemon           |
| shutdown         |
| operator         |
| games            |
| nobody           |
| systemd-coredump |
| systemd-resolve  |
| polkitd          |
| unbound          |
| alice            |
| apache           |
| mysql            |
| susan            |
| baobob           |
| bilib            |
| baibaib          |
+------------------+
16 rows in set (0.00 sec)


mysql> select name,uid from user where uid regexp '....';
+---------+-------+
| name    | uid   |
+---------+-------+
| nobody  | 65534 |
| alice   |  1000 |
| mysql   |  1001 |
| bob     |  2023 |
| tom     |  2023 |
| bob     |  2023 |
| lisi    |  2023 |
| susan   |  2023 |
| baobob  |  1999 |
| bilib   |  2021 |
| baibaib |  2021 |
+---------+-------+
11 rows in set (0.00 sec)


限制字符长度为4
mysql> select name,uid from user where uid regexp '^....$';
+---------+------+
| name    | uid  |
+---------+------+
| alice   | 1000 |
| mysql   | 1001 |
| bob     | 2023 |
| tom     | 2023 |
| bob     | 2023 |
| lisi    | 2023 |
| susan   | 2023 |
| baobob  | 1999 |
| bilib   | 2021 |
| baibaib | 2021 |
+---------+------+
10 rows in set (0.00 sec)

四则运算

请添加图片描述

mysql> select id,name,uid from user where uid>=2000;
+----+---------+-------+
| id | name    | uid   |
+----+---------+-------+
| 13 | nobody  | 65534 |
| 30 | bob     |  2024 |
| 31 | tom     |  2024 |
| 32 | bob     |  2024 |
| 33 | lisi    |  2024 |
| 34 | susan   |  2024 |
| 37 | baobob  |  2000 |
| 38 | bilib   |  2022 |
| 39 | baibaib |  2022 |
+----+---------+-------+
9 rows in set (0.00 sec)


给id大于等于30的,id加10
mysql> update user set id=id+10 where id>=30;
Query OK, 8 rows affected (0.04 sec)
Rows matched: 8  Changed: 8  Warnings: 0

mysql> select id,name,uid from user where id>=30;
+----+---------+------+
| id | name    | uid  |
+----+---------+------+
| 40 | bob     | 2024 |
| 41 | tom     | 2024 |
| 42 | bob     | 2024 |
| 43 | lisi    | 2024 |
| 44 | susan   | 2024 |
| 47 | baobob  | 2000 |
| 48 | bilib   | 2022 |
| 49 | baibaib | 2022 |
+----+---------+------+
8 rows in set (0.00 sec)


把id大于等于30的,用户和组id*2,把操作命名为yxj(优先级)

mysql> select name,uid,gid,(uid+gid)*2 yxj from user where id >=30;
+---------+------+------+------+
| name    | uid  | gid  | yxj  |
+---------+------+------+------+
| bob     | 2024 | 2020 | 8088 |
| tom     | 2024 | 2020 | 8088 |
| bob     | 2024 | 2020 | 8088 |
| lisi    | 2024 | 2020 | 8088 |
| susan   | 2024 | 2020 | 8088 |
| baobob  | 2000 | NULL | NULL |
| bilib   | 2022 | NULL | NULL |
| baibaib | 2022 | NULL | NULL |
+---------+------+------+------+
8 rows in set (0.00 sec)



不加括号,按顺序算
mysql> select name,uid,gid,uid+gid*2 yxj from user where id >=30;
+---------+------+------+------+
| name    | uid  | gid  | yxj  |
+---------+------+------+------+
| bob     | 2024 | 2020 | 6064 |
| tom     | 2024 | 2020 | 6064 |
| bob     | 2024 | 2020 | 6064 |
| lisi    | 2024 | 2020 | 6064 |
| susan   | 2024 | 2020 | 6064 |
| baobob  | 2000 | NULL | NULL |
| bilib   | 2022 | NULL | NULL |
| baibaib | 2022 | NULL | NULL |
+---------+------+------+------+
8 rows in set (0.00 sec)

操作查询结果(对查找到的数据再做处理)

请添加图片描述

排序

mysql> select name,id,uid from user where uid>=1700 ;
+---------+----+-------+
| name    | id | uid   |
+---------+----+-------+
| nobody  | 13 | 65534 |
| bob     | 30 |  2024 |
| tom     | 31 |  2024 |
| bob     | 32 |  2024 |
| lisi    | 33 |  2024 |
| susan   | 34 |  2024 |
| baobob  | 37 |  2000 |
| bilib   | 38 |  2022 |
| baibaib | 39 |  2022 |
+---------+----+-------+
9 rows in set (0.00 sec)


排序默认是升序:
mysql> select name,id,uid from user where uid>=1700 order by uid;
+---------+----+-------+
| name    | id | uid   |
+---------+----+-------+
| baobob  | 37 |  2000 |
| bilib   | 38 |  2022 |
| baibaib | 39 |  2022 |
| bob     | 30 |  2024 |
| tom     | 31 |  2024 |
| bob     | 32 |  2024 |
| lisi    | 33 |  2024 |
| susan   | 34 |  2024 |
| nobody  | 13 | 65534 |
+---------+----+-------+
9 rows in set (0.00 sec)



降序排:
mysql> select name,id,uid from user where uid>=1700 order by uid desc;
+---------+----+-------+
| name    | id | uid   |
+---------+----+-------+
| nobody  | 13 | 65534 |
| bob     | 30 |  2024 |
| tom     | 31 |  2024 |
| bob     | 32 |  2024 |
| lisi    | 33 |  2024 |
| susan   | 34 |  2024 |
| bilib   | 38 |  2022 |
| baibaib | 39 |  2022 |
| baobob  | 37 |  2000 |
+---------+----+-------+
9 rows in set (0.00 sec)


分组(一样的显示一次): 查询语句 group by 字段;请添加图片描述

字段类太多,用shell分组,逻辑错误
mysql> select name,id,shell from user group by shell;
ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'db1.user.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by


一般查什么按什么分:
mysql> select shell from user group by shell;
+----------------+
| shell          |
+----------------+
| /bin/bash      |
| /sbin/nologin  |
| /bin/sync      |
| /sbin/shutdown |
| /sbin/halt     |
| NULL           |
+----------------+
6 rows in set (0.00 sec)


去重 distinct(部分实现无法由group完成)

mysql> select  name,id from user where id>=30;
+---------+----+
| name    | id |
+---------+----+
| bob     | 30 |
| tom     | 31 |
| bob     | 32 |
| lisi    | 33 |
| susan   | 34 |
| baobob  | 37 |
| bilib   | 38 |
| baibaib | 39 |
+---------+----+
8 rows in set (0.00 sec)

mysql> select distinct  name from user where id>=30;
+---------+
| name    |
+---------+
| bob     |
| tom     |
| lisi    |
| susan   |
| baobob  |
| bilib   |
| baibaib |
+---------+
7 rows in set (0.01 sec)

mysql> select group  name from user where id>=30;
ERROR 1064 (42000): 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 'group  name from user where id>=30' at line 1

聚集函数(MySQL自带的对数据统计的命令)

请添加图片描述

mysql> select uid from user where id>=30  ;
+------+
| uid  |
+------+
| 2024 |
| 2024 |
| 2024 |
| 2024 |
| 2024 |
| 2000 |
| 2022 |
| 2022 |
+------+
8 rows in set (0.00 sec)


最小值、最大值、平均值、和、个数
mysql> select min(uid),max(uid),avg(uid),sum(uid),count(uid) from user where id>=30  ;
+----------+----------+-----------+----------+------------+
| min(uid) | max(uid) | avg(uid)  | sum(uid) | count(uid) |
+----------+----------+-----------+----------+------------+
|     2000 |     2024 | 2020.5000 |    16164 |          8 |
+----------+----------+-----------+----------+------------+
1 row in set (0.00 sec)

null 空,在统计个数时,算无数据不会计入,所以这里gid才会是5.

mysql> select *  from user where id>=30  ;
+----+---------+----------+------+------+-----------+-----------+-----------+
| id | name    | password | uid  | gid  | comment   | homedir   | shell     |
+----+---------+----------+------+------+-----------+-----------+-----------+
| 30 | bob     | x        | 2024 | 2020 | test user | /home/bob | /bin/bash |
| 31 | tom     | x        | 2024 | 2020 | test user | /home/tom | /bin/bash |
| 32 | bob     | x        | 2024 | 2020 | test user | /home/bob | /bin/bash |
| 33 | lisi    | NULL     | 2024 | 2020 | NULL      | NULL      | NULL      |
| 34 | susan   | NULL     | 2024 | 2020 | NULL      | NULL      | NULL      |
| 37 | baobob  | NULL     | 2000 | NULL | NULL      | NULL      | NULL      |
| 38 | bilib   | NULL     | 2022 | NULL | NULL      | NULL      | NULL      |
| 39 | baibaib | NULL     | 2022 | NULL | NULL      | NULL      | NULL      |
+----+---------+----------+------+------+-----------+-----------+-----------+
8 rows in set (0.00 sec)

mysql> select count(gid)  from user where id>=30  ;
+------------+
| count(gid) |
+------------+
|          5 |
+------------+
1 row in set (0.00 sec)


查询结果过滤

请添加图片描述

mysql> select  name from user where id>=30  ;
+---------+
| name    |
+---------+
| bob     |
| tom     |
| bob     |
| lisi    |
| susan   |
| baobob  |
| bilib   |
| baibaib |
+---------+
8 rows in set (0.00 sec)

mysql> select  name from user where id>=30  having name='bob';
+------+
| name |
+------+
| bob  |
| bob  |
+------+
2 rows in set (0.01 sec)

限制查询结果显示行数

请添加图片描述

mysql> select  name,id from user where id<=10 ;
+----------+----+
| name     | id |
+----------+----+
| root     |  1 |
| bin      |  2 |
| daemon   |  3 |
| adm      |  4 |
| lp       |  5 |
| sync     |  6 |
| shutdown |  7 |
| halt     |  8 |
| mail     |  9 |
| operator | 10 |
+----------+----+
10 rows in set (0.00 sec)

显示前5行:
mysql> select  name,id from user where id<=10  limit 5;
+--------+----+
| name   | id |
+--------+----+
| root   |  1 |
| bin    |  2 |
| daemon |  3 |
| adm    |  4 |
| lp     |  5 |
+--------+----+
5 rows in set (0.01 sec)


从第5行以后显示,显示2行
mysql> select  name,id from user where id<=10  limit 5,2;
+----------+----+
| name     | id |
+----------+----+
| sync     |  6 |
| shutdown |  7 |
+----------+----+
2 rows in set (0.00 sec)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/536897.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

FreeRTOS_系统配置

目录 1. FreeRTOSConfig.h 文件 2. "INCLUDE_" 开始的宏 2.1 INCLUDE_xSemaphoreGetMutexHolder 2.2 INCLUDE_xTaskAbortDelay 2.3 INCLUDE_vTaskDelay 2.4 INCLUDE_vTaskDelayUntil 2.5 INCLUDE_vTaskDelete 2.6 INCLUDE_xTaskGetCurrentTaskHandle 2.7 IN…

数据结构与算法(二)

一、数组 什么是数组&#xff1f; 数组&#xff1a;在内存中用一串连续的区域来存放一些值。数组是相同类型数据元素的有序集合 数组是由相同类型的元素的集合组成的数据结构 连续内存&#xff1a;JS的数组元素可以是任意类型&#xff0c;JS中的内存地址是不连续的 数组的…

工业互联网的新应用:高端装备的故障预测和健康管理

高端装备制造行业作为我国战略性新兴产业的重要组成部分&#xff0c;面临着产品复杂和生命周期长的挑战。为了提高装备的可靠性、可用性和维护效率&#xff0c;工业互联网技术在高端装备的故障预测和健康管理方面发挥了重要作用。 本文将探讨工业互联网在高端装备中故障预测和…

如何应用金字塔模型提高结构化表达能力

看一下结构化表达的定义&#xff1a; 结构化表达&#xff1a;是基于结构化思维&#xff0c;理清事物整理与部分之间关系、换位思考后&#xff0c;进行简洁、清晰和有信服力的表达&#xff0c;是一种让受众听得明白、记得清楚、产生认同的精益沟通方式。 结构化表达的基本原则是…

度娘教我influxdb,先搞一波在补理论

InfluxDb中的数据查询语法where子句 公司用的时序性数据库是influxdb&#xff0c;但是确实接触有点少。 心里话&#xff1a; 就是没接触过&#xff0c;度娘教教我。。。。 我咋回呢&#xff0c;现学吧&#xff0c;都是数据库&#xff0c;天下乌鸦一般黑然后就哟了以下&#xf…

Mac 更换.gradle文件目录

用mac开发最大滑铁卢居然是存储空间不足......于是加了一个外置的存储器。于是需要把android开发中最大的一个缓存目录移到外置存储器... 一开始对android studio的进行了如下设置 于是乎...Mac用户下的.gradle全删了...这个时候用android studio打包运行都没问题了。 如果你…

AI在视频教学方面会有哪些有意思应用?

阿酷TONY / 原创 / 2023-5-17 / 长沙 来&#xff0c;我们一起来探索未来式的学习体验&#xff0c;AI视频&#xff0c;AI与视频的应用将为你带来前所未有的教学体验。AI在视频教学方面的应用&#xff0c;主要会体现在如下几个方面&#xff1a; 1. AI 课程知识点梳理 2. AI 学…

前段时间公司招人,面了一个要23K的,一问自动化只会点皮毛···

前段时间公司要招2个自动化测试&#xff0c;同事面了几十个候选人&#xff0c;发现了一个很奇怪的现象&#xff0c;面试的时候&#xff0c;如果问的是框架api、脚本编写这些问题&#xff0c;基本上个个都能对答如流&#xff0c;等问到实际项目的时候&#xff0c;类似“怎么从0开…

OPPO关停哲库业务,工程师造芯何去何从?

5月12日&#xff08;上周五&#xff09;&#xff0c;新浪科技从OPPO处了解到&#xff0c;OPPO将终止ZEKU业务。3000多人团队突然原地解散&#xff0c;网上唏嘘声一片&#xff01; ZEKU最初成立于2019年&#xff0c;是OPPO的全资子公司&#xff0c;欧加集团百分之百注资成立。总…

提高合规性与安全性:ADAudit Plus助力企业数据审计

简介&#xff1a;在现代数字化时代&#xff0c;企业面临着日益增长的数据安全威胁和法规合规要求。为了应对这些挑战&#xff0c;企业需要强大的数据审计解决方案来监控和保护其敏感数据。ADAudit Plus是一款功能强大的工具&#xff0c;旨在帮助企业提高合规性&#xff0c;并提…

dll注入技术

一、dll注入的概念 当一个进程运行时&#xff0c;它会加载并使用一些动态链接库&#xff08;DLL&#xff09;来提供额外的功能和资源。这些DLL可以被多个进程共享&#xff0c;使得代码重用和资源共享变得更加高效。DLL注入技术利用了这种共享机制。它允许向正在运行的进程中注…

厦大凭什么和清北复一起入选首批国家集成电路产教融合创新平台?对台区位优势吗

最近&#xff0c;有网友提出这样一个问题&#xff0c;众所周知&#xff0c;中国集成电路研究主要集中在北京和上海&#xff0c;清北可以和北京合作&#xff0c;复旦可以和上海合作&#xff0c;那么厦大和谁合作&#xff0c;厦大又凭什么和清北复一起入选了首批国家集成电路产教…

RecyclerView 分层级展示(抽屉) TreeView

先看效果 难点: 数据层级的划分;理清楚层级关系, 剩下的就简单明了了; 1. 第一步 new Adapter, and setAdapter; (不需要setLayoutManager, Adapter里有set); mAdapter new TreeViewAdapter(getContext(),mRecyclerView); mRecyclerView.setAdapter(mAdapter); 2. 第二步, …

素雅的登录界面,简单而优雅

先上效果图&#xff1a; 再上代码&#xff1a; <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>Title</title><style>*, *::after, *::before {margin: 0;padding: 0;box-sizing: bord…

本地服务器与云服务器哪个好?

本地服务器和云服务器是企业可以使用的两种不同的服务器设置。主要区别在于本地服务器托管&#xff0c;第三方提供商托管云服务器。那么&#xff0c;本地服务器和云服务器哪个更好呢&#xff1f; 接下来&#xff0c;将带大家讨论本地服务器和云服务器的优缺点&#xff0c;并帮…

Golang笔记:使用embed包将静态资源嵌入到程序中

文章目录 目的使用演示//go:embed 指令在WebServer中应用总结 目的 Golang编译程序默认是静态编译&#xff0c;会把相关的库都打包到一起&#xff0c;这在分发部署使用时非常方便。不过如果项目中用到的外部的静态资源文件&#xff0c;通常就需要将这些资源和程序一起拷贝分发…

软件测试面试大全(涵盖了软件测试的全部核心技术点),应对技术面妥妥的

软件测试面试题&#xff1a;项目 1、简单介绍下最近做过的项目 根据自己的项目整理完成&#xff0c;要点&#xff1a; 1&#xff09;项目背景、业务、需求、核心业务的流程 2&#xff09;项目架构&#xff0c;B/S 还是 C/5&#xff0c;数据库用的什么? 中间件用的什么&…

[开源工具] [Unity实战]Jenkins如何配置拉取Git/Jenkins使用Unity一键打包[windows][android]

[开源工具]Jenkins如何配置拉取Git/Jenkins使用Unity一键打包[windows][android] 1.背景介绍1.1Jenkins是什么?1.2用JenkinsUnity的好处? 2.Jenkins安装&使用2.1Java112.2 下载jenkins.war(我用tomcat所以需要,可以用jenkins安装版本)2.3 使用Tomcat92.4将tomcat9解压后,…

1.高级面试-MySQL、Redis、特殊场景、Java

本文目录如下&#xff1a; 高级面试一、MySQLB树有什么优点&#xff1f; image.pngInnoDB 和 MyISAM 的索引结构有什么区别 (聚簇索引-非聚簇索引)&#xff1f; 二、RedisRedis 如何保证存储的都是 热点数据&#xff1f;大量 key 为同一过期时间怎么办&#xff1f;缓存一致性的…

TS构建微信小程序后使用vant weapp框架配置

1.npm 安装 # 通过 npm 安装 npm i vant/weapp -S --production 2.配置app.json 将 app.json 中的 "style": "v2" 去除&#xff0c;小程序的新版基础组件强行加上了许多样式&#xff0c;难以覆盖&#xff0c;不关闭将造成部分组件样式混乱。 3.修改 pr…