2024.8.7(SQL语句)

news2024/9/23 9:33:02

一、回顾

1、主服务器

[root@slave-mysql ~]# yum -y install rsync
[root@master-mysql ~]# yum -y install rsync

[root@master-mysql ~]# tar -xf mysql-8.0.33-linux-glibc2.12-x86_64.tar 
[root@master-mysql ~]# ls
[root@master-mysql ~]# tar -xf mysql-8.0.33-linux-glibc2.12-x86_64.tar.xz
[root@master-mysql ~]# ls
[root@master-mysql ~]# vim mysql-8.0.33-linux-glibc2.12-x86_64/support-files/mysql.server 
[root@master-mysql ~]# cp -r mysql-8.0.33-linux-glibc2.12-x86_64 /usr/local/mysql
[root@master-mysql ~]# cd /usr/local/mysql/
[root@master-mysql mysql]# ls


[root@master-mysql mysql]# mkdir mysql-files
[root@master-mysql mysql]# ll

[root@master-mysql mysql]# useradd -r -s /sbin/nologin mysql
[root@master-mysql mysql]# id mysql
uid=997(mysql) gid=995(mysql) 组=995(mysql)
[root@master-mysql mysql]# chown mysql:mysql ./mysql-files/
[root@master-mysql mysql]# ll

[root@master-mysql mysql]# ./bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql
[root@master-mysql mysql]# ls

[root@master-mysql mysql]# ./bin/mysql_ssl_rsa_setup --datadir=/usr/local/mysql/data
[root@master-mysql mysql]# cp support-files/mysql.server /etc/init.d/mysql8
[root@master-mysql mysql]# vim my.cnf


[root@master-mysql mysql]# service mysql8 start

[root@master-mysql mysql]# ./bin/mysql -P 3306 -p

[root@master-mysql mysql]# vim my.cnf

[mysqld]
basedir=/usr/local/mysql/
datadir=/usr/local/mysql/data
socket=/tmp/mysql.sock
port=3306
log-error=/usr/local/mysql/data/err.log
log-bin=/usr/local/mysql/data/binlog
charactor_set_server=utf8mb4

server_id=10

[root@master-mysql mysql]# service mysql8 restart
[root@master-mysql mysql]# ls data

2、从服务器(不用初始化)

[root@slave-mysql ~]# tar -xf mysql-8.0.33-linux-glibc2.12-x86_64.tar 
[root@slave-mysql ~]# tar -xf mysql-8.0.33-linux-glibc2.12-x86_64.tar.xz
[root@slave-mysql ~]# cp -r mysql-8.0.33-linux-glibc2.12-x86_64 /usr/local/mysql
[root@slave-mysql ~]# useradd -r -s /sbin/nologin mysql
[root@slave-mysql ~]# mkdir /usr/local/mysql/mysql-files
[root@slave-mysql ~]# chown mysql:mysql /usr/local/mysql/mysql-files/
[root@slave-mysql ~]# ll /usr/local/mysql/


[root@slave-mysql ~]# rm -rf /etc/my.cnf
[root@slave-mysql ~]# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql8

3、主从同步

[root@master-mysql mysql]# rm -rf /usr/local/mysql/data/auto.cnf

[root@master-mysql mysql]# ls /usr/local/mysql/data/
[root@master-mysql mysql]# rsync -av /usr/local/mysql/data root@192.168.8.128:/usr/local/mysql/

 

[root@slave-mysql ~]# vim /usr/local/mysql/data/my.cnf


[root@slave-mysql ~]# service mysql8 start

[root@slave-mysql ~]# /usr/local/mysql/bin/mysql -pN6s9znjbL*/s

4、主从实现
1. 主服务器

[root@master-mysql mysql]# vim /etc/profile


[root@master-mysql mysql]# source /etc/profile

[root@master-mysql mysql]# mysql -p

mysql> create user 'slave'@'192.168.8.%' identified by 'slave_123'';

Query OK, 0 rows affected (0.01 sec)

mysql> grant replication slave on *.* to 'slave'@'192.168.8.%';
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> flush tables with read lock;
Query OK, 0 rows affected (0.00 sec)

mysql> show master status;
+---------------+----------+--------------+------------------+-------------------+
| File          | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+---------------+----------+--------------+------------------+-------------------+
| binlog.000004 |     1198 |              |                  |                   |
+---------------+----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)
2. 从服务器 

[root@slave-mysql ~]# vim /etc/profile


[root@slave-mysql ~]# source /etc/profile

[root@slave-mysql ~]# mysql -h192.168.8.139 -uslave -pslave_123 --get-server-public-key

[root@slave-mysql ~]# mysql -p123456 -P3306

mysql> stop slave;
Query OK, 0 rows affected, 2 warnings (0.00 sec)

mysql> reset slave;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> change master to
    -> master_host='192.168.8.139',
    -> master_user='slave',
    -> master_password='slave_123',
    -> master_log_file='binlog.000004',
    -> master_log_pos=3296;
Query OK, 0 rows affected, 8 warnings (0.02 sec)

mysql> start slave;
Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> show slave status\G;
3. 主服务器创建表,添加数据
mysql> unlock tables;
Query OK, 0 rows affected (0.01 sec)
mysql> create database if not exists test charset utf8mb4;
Query OK, 1 row affected (0.01 sec)

mysql> use test;
Database changed
mysql> create table student(id int primary key,name varchar(45)not null,gender varchar(4) not null);
Query OK, 0 rows affected (0.02 sec)
mysql> insert into student values(1,'张三','男');
Query OK, 1 row affected (0.02 sec)

mysql> insert into student values(2,'李四','男');
Query OK, 1 row affected (0.00 sec)

mysql> insert into student values(3,'王五','男');
Query OK, 1 row affected (0.00 sec)

mysql> select * from student;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
+----+--------+--------+
4. 从服务器查看同步并写入东西(从服务器不容许写入东西)
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
| test               |
+--------------------+
5 rows in set (0.00 sec)

mysql> use test;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from student;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
+----+--------+--------+
3 rows in set (0.00 sec)

mysql> insert into student values(4,'李网','女');
Query OK, 1 row affected (0.00 sec)

mysql> select * from student;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
|  4 | 李网   | 女     |
+----+--------+--------+
4 rows in set (0.00 sec)

mysql> insert into student values(6,'章节','男');
Query OK, 1 row affected (0.01 sec)

mysql> select * from student;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男    |
|  3 | 王五  | 男     |
|  6 | 章节   | 男     |
+----+--------+--------+
4 rows in set (0.00 sec)
5. 主服务器插入数据
mysql> select * from student;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
|  4 | 李网   | 女     |
|  6 | 章节   | 男     |
+----+--------+--------+
5 rows in set (0.00 sec)
6. 主服务器查看
mysql> select * from student;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
|  4 | 李网   | 女     |
|  6 | 章节   | 男     |
+----+--------+--------+
5 rows in set (0.00 sec)

二、SQL语句

1、新增

        1. insert into库名称.表名

        (id,username,password)values(1,"abc","123")

        2. insert into 表名称 values(1, "name","word")

        3. insert into 表名称 select* from 其他表

        4. insert into 表 values (),()

2、删除

        1. delete from 表名

        2. deletefrom表名称 where id=3

        3. delete from 表名称 where age>8

        4. delete from 表 where name on ("a","b","c")

3、修改

        1. update mysql.user set host='%' where name='root'

        2. update user set password='abc' where username="zhangsan"

4、查询
        1. 单表查询

                1.1 select 字段名列表 from表名称,索引

        2. 多表查询  
mysql> select count(*) from student;
+----------+
| count(*) |
+----------+
|        3 |
+----------+
1 row in set (0.05 sec)

mysql> select count(1) from student;
+----------+
| count(1) |
+----------+
|        3 |
+----------+
1 row in set (0.06 sec)

mysql> select count(id) from student;
+-----------+
| count(id) |
+-----------+
|         3 |
+-----------+
1 row in set (0.06 sec)

mysql> select a.*,b.* from student as a,student as b;
+----+--------+--------+----+--------+--------+
| id | name   | gender | id | name   | gender |
+----+--------+--------+----+--------+--------+
|  3 | 王五   | 男     |  1 | 张三   | 男     |
|  2 | 李四   | 男     |  1 | 张三   | 男     |
|  1 | 张三   | 男     |  1 | 张三   | 男     |
|  3 | 王五   | 男     |  2 | 李四   | 男     |
|  2 | 李四   | 男     |  2 | 李四   | 男     |
|  1 | 张三   | 男     |  2 | 李四   | 男     |
|  3 | 王五   | 男     |  3 | 王五   | 男     |
|  2 | 李四   | 男     |  3 | 王五   | 男     |
|  1 | 张三   | 男     |  3 | 王五   | 男     |
+----+--------+--------+----+--------+--------+
9 rows in set (0.00 sec)
5、远程连接数据库
        1. username
        2. password
        3. url   mysql IP地址 数据库名称 端口
mysql> create user 'abc'@'%' identified by '123';
Query OK, 0 rows affected (0.01 sec)

mysql> grant all on *.* to 'abc'@'%';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
6、别名
mysql> select id,name,gender from student;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
+----+--------+--------+
3 rows in set (0.00 sec)

mysql> select id as 编号,name,gender from student;
+--------+--------+--------+
| 编号   | name   | gender |
+--------+--------+--------+
|      1 | 张三   | 男     |
|      2 | 李四   | 男     |
|      3 | 王五   | 男     |
+--------+--------+--------+
3 rows in set (0.00 sec)

三、MySQL 函数

数据分析的基础

1、排序
        1. max
        2. min
mysql> select max(price) from product group by name;
+------------+
| max(price) |
+------------+
|        8.5 |
|       12.5 |
|       12.4 |
|       18.3 |
+------------+
4 rows in set (0.00 sec)

mysql> select max(price) from product;
+------------+
| max(price) |
+------------+
|       18.3 |
+------------+
1 row in set (0.00 sec)

mysql> select min(price) from product;
+------------+
| min(price) |
+------------+
|        8.5 |
+------------+
1 row in set (0.00 sec)
2、汇总
        1. count
        2. sum
        3. avg
mysql> select sum(price) from product;
+-------------------+
| sum(price)        |
+-------------------+
| 51.69999885559082 |
+-------------------+
1 row in set (0.00 sec)

mysql> select avg(price) from product;
+--------------------+
| avg(price)         |
+--------------------+
| 12.924999713897705 |
+--------------------+
1 row in set (0.00 sec)

mysql> select *,price*qty as tt from product;
+----+-----------+-------+-----+-------------------+
| id | name      | price | qty | tt                |
+----+-----------+-------+-----+-------------------+
|  1 | 香蕉      |   8.5 | 200 |              1700 |
|  2 | 苹果      |  12.5 | 400 |              5000 |
|  3 | 菠萝      |  12.4 |  70 | 867.9999732971191 |
|  4 | 哈密瓜    |  18.3 | 400 | 7319.999694824219 |
+----+-----------+-------+-----+-------------------+
4 rows in set (0.00 sec)

mysql> select sum(tt) from (select *,price*qty as tt from productt) as a;
+--------------------+
| sum(tt)            |
+--------------------+
| 14887.999668121338 |
+--------------------+
1 row in set (0.00 sec)
3、数制

        1. 二进制

        2. 八进制

        3. 十进制

        4. 十六进制

        5. AA 27

mysql> select * from student order by gender desc;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
|  4 | 花花   | 女     |
|  5 | 花     | 女     |
+----+--------+--------+
5 rows in set (0.00 sec)

mysql> select * from student order by gender asc;
+----+--------+--------+
| id | name   | gender |
+----+--------+--------+
|  4 | 花花   | 女     |
|  5 | 花     | 女     |
|  1 | 张三   | 男     |
|  2 | 李四   | 男     |
|  3 | 王五   | 男     |
+----+--------+--------+
5 rows in set (0.00 sec)
4、聚合函数

只有select子句和having子句、order by子句中能使用聚合函数,where子句不能使用聚合函
数。当使用聚合函数查询以后,不能使用where条件,如果要添加条件,

mysql> select gender,count(gender) from student group by gender;

+--------+---------------+
| gender | count(gender) |
+--------+---------------+
| 男     |             3 |
| 女     |             2 |
+--------+---------------+
2 rows in set (0.01 sec)

mysql> select gender as 性别,count(gender) as 人数 from studentgroup by gender;
+--------+--------+
| 性别   | 人数   |
+--------+--------+
| 男     |      3 |
| 女     |      2 |
+--------+--------+
2 rows in set (0.00 sec)
mysql> create table product(
    -> id int primary key auto_increment,
    -> name varchar(45) not null,
    -> price float not null,
    -> qty int not null);
Query OK, 0 rows affected (0.01 sec)

mysql> desc product;
+-------+-------------+------+-----+---------+----------------+
| Field | Type        | Null | Key | Default | Extra          |
+-------+-------------+------+-----+---------+----------------+
| id    | int         | NO   | PRI | NULL    | auto_increment |
| name  | varchar(45) | NO   |     | NULL    |                |
| price | float       | NO   |     | NULL    |                |
| qty   | int         | NO   |     | NULL    |                |
+-------+-------------+------+-----+---------+----------------+
4 rows in set (0.01 sec)

mysql> insert into product (name,price,qty) values("香蕉",8.5,200);
Query OK, 1 row affected (0.01 sec)

mysql> insert into product (name,price,qty) values("苹果",12.5,4000);
Query OK, 1 row affected (0.00 sec)

mysql> insert into product (name,price,qty) values("菠萝",12.4,700);
Query OK, 1 row affected (0.00 sec)

mysql> insert into product (name,price,qty) values("哈密瓜",18.3,,400);
Query OK, 1 row affected (0.00 sec)

mysql> select * from product;
+----+-----------+-------+-----+
| id | name      | price | qty |
+----+-----------+-------+-----+
|  1 | 香蕉      |   8.5 | 200 |
|  2 | 苹果      |  12.5 | 400 |
|  3 | 菠萝      |  12.4 |  70 |
|  4 | 哈密瓜    |  18.3 | 400 |
+----+-----------+-------+-----+
4 rows in set (0.00 sec)

mysql> select * from product order by qty;
+----+-----------+-------+-----+
| id | name      | price | qty |
+----+-----------+-------+-----+
|  3 | 菠萝      |  12.4 |  70 |
|  1 | 香蕉      |   8.5 | 200 |
|  2 | 苹果      |  12.5 | 400 |
|  4 | 哈密瓜    |  18.3 | 400 |
+----+-----------+-------+-----+
4 rows in set (0.00 sec)

mysql> select * from product order by price;
+----+-----------+-------+-----+
| id | name      | price | qty |
+----+-----------+-------+-----+
|  1 | 香蕉      |   8.5 | 200 |
|  3 | 菠萝      |  12.4 |  70 |
|  2 | 苹果      |  12.5 | 400 |
|  4 | 哈密瓜    |  18.3 | 400 |
+----+-----------+-------+-----+
4 rows in set (0.00 sec)
mysql> select * from (select * from product order by qty) as a oerder by a.price;
+----+-----------+-------+-----+
| id | name      | price | qty |
+----+-----------+-------+-----+
|  1 | 香蕉      |   8.5 | 200 |
|  3 | 菠萝      |  12.4 |  70 |
|  2 | 苹果      |  12.5 | 400 |
|  4 | 哈密瓜    |  18.3 | 400 |
+----+-----------+-------+-----+
4 rows in set (0.00 sec)

 

mysql> select now();
+---------------------+
| now()               |
+---------------------+
| 2024-08-07 15:30:50 |
+---------------------+
1 row in set (0.00 sec)

mysql> select year(now());
+-------------+
| year(now()) |
+-------------+
|        2024 |
+-------------+
1 row in set (0.00 sec)

mysql> select second(now());
+---------------+
| second(now()) |
+---------------+
|            13 |
+---------------+
1 row in set (0.00 sec)

mysql> insert into product (name,price,qty) values (now(),7.8,90)
);
Query OK, 1 row affected (0.00 sec)

mysql> select * from product;
+----+---------------------+-------+-----+
| id | name                | price | qty |
+----+---------------------+-------+-----+
|  1 | 香蕉                |   8.5 | 200 |
|  2 | 苹果                |  12.5 | 400 |
|  3 | 菠萝                |  12.4 |  70 |
|  4 | 哈密瓜              |  18.3 | 400 |
|  5 | 2024-08-07 15:33:08 |   7.8 |  90 |
+----+---------------------+-------+-----+
5 rows in set (0.00 sec)

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

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

相关文章

ssd202d-添加4g模块-HM609

1.lsusb要看到设备 2.驱动部分要打开usb识别,rndis支持 diff --git a/kernel/arch/arm/configs/infinity2m_spinand_ssc011a_s01a_minigui_defconfig b/kernel/arch/arm/configs/infinity2m_spinand_ssc011a_s01a_minigui_defconfig index e6a2e43b6..b0a60f4ee 100755 --- a/…

新品上市:ATA-401高压功率放大器技术参数、特点及应用

随着电子工程师不断增长的测试需求,安泰电子也在不断的拓展和研发新产品,近期安泰ATA-400系列高压功率放大器正式上线,又一单品新品测试仪器加入了Aigtek大家庭——ATA-401高压功率放大器。 关于ATA-401高压功率放大器 参数指标介绍&#xff…

基于vue框架的CIA报价平台的设计与实现1xv02(程序+源码+数据库+调试部署+开发环境)系统界面在最后面。

系统程序文件列表 项目功能:用户,供应商,产品分类,产品信息,在线咨询,资质申请 开题报告内容 基于Vue框架的CIA报价平台的设计与实现 开题报告 一、选题背景 随着市场竞争的日益激烈,企业对于成本控制与效率提升的需求愈发迫切。在采购与供应链管理…

Unity URP 浅析两种模型透明Shader原理

Unity URP 浅析两种模型透明Shader原理 前言实现第一种 单个Pass写入深度的逻辑正确半透明模型第二种 2个Pass分工合作视觉正确的半透明模型 参考 前言 使用Unity做过半透明的朋友们都知道,这里面一堆坑,下面简单说两种透明Shader在ASE中的实现&#xf…

【仓颉】控制台输出中文乱码,cmd和powershell的解决方案

【仓颉】控制台输出中文乱码,cmd和powershell的解决方案 main(): Int64 {...println("这是仓颉")return 0 }临时修改编码页面 代码页国家(地区)或语言437美国850多语言(拉丁文 I)936中国 - 简体中文(GB2312)52936简体中文(HZ)65000Unicode (UTF-7)65001U…

Qt 计算器程序

下载链接: https://pan.baidu.com/s/1112o9eVbpC7FySsXRuP2xA 提取码: rd92 运行结果:

聚鼎科技:开一家抖音店铺到底还有前景不

在数字化的浪潮中,抖音不仅仅是一款短视频应用,它已经成为了一个新兴的商业平台,一个充满无限可能的市场。在这个平台上开一家店铺,就像在星辰大海中寻找自己的航向,既有挑战也有机遇。 “未来属于那些相信梦想之美的人…

【银河麒麟服务器操作系统·实例分享】虚机系统ssh无法正常登录访问,分析过程及处理建议

了解更多银河麒麟操作系统全新产品,请点击访问 麒麟软件产品专区:https://product.kylinos.cn 开发者专区:https://developer.kylinos.cn 服务器环境以及配置 【机型】虚机 处理器: Kunpeng-920 内存: 32G 整机…

Linux 下的进程状态

文章目录 一、运行状态运行队列运行状态和运行队列 二、睡眠状态S状态D状态D状态产生的原因 三、暂停状态T状态t 状态 四、僵尸状态为什么有僵尸状态孤儿进程 一、运行状态 R状态:进程已经准备好随时被调度了。 运行队列 每个 CPU 都会维护一个自己的运行队列&am…

一文读懂GPU通信互联技术:GPUDirect、NVLink与RDMA

在高性能计算和深度学习领域,GPU的强大计算能力已成为不可或缺的工具。然而,随着模型复杂度和数据量的增加,单个GPU已无法满足需求,多个GPU甚至多台服务器协同工作成为常态。这就要求高效的GPU互联通信技术,以确保数据…

mesh格式转换:glb转ply——使用Blender烘焙贴图到顶点色

1. 导入glb文件 选择shading后,选中物体,就能看到下面的节点树。 2. 创建顶点颜色 这个时候我们可以看到模型的顶点颜色是纯白色的。 2. 将贴图付给材质 原来: 现在: 3. 切换渲染器并烘焙顶点颜色 第三行选择CPU渲染或者GPU…

Golang | Leetcode Golang题解之第331题验证二叉树的前序序列化

题目&#xff1a; 题解&#xff1a; func isValidSerialization(preorder string) bool {n : len(preorder)slots : 1for i : 0; i < n; {if slots 0 {return false}if preorder[i] , {i} else if preorder[i] # {slots--i} else {// 读一个数字for i < n &&…

Redis的持久化的策略

Redis的持久化的策略 官方文档说明 AOF持久化策略RDB持久化的策略 AOF持久化策略 AOF持久性记录服务器接收到的每个写操作&#xff0c;然后&#xff0c;可以在服务器启动时再次重播这些操作&#xff0c;重建原始数据集&#xff0c;使用与Redis协议本身相同的格式记录命令。…

kotlin协程之runBlocking

前言 上一篇: Callback转挂起函数 文章中,介绍了在Kotlin协程中如何把传统的回调风格的异步操作转换为协程风格的挂起函数,这个在开发过程中是非常常用的,主要用于把 callback 风格的代码转换为协程中的挂起函数,以便于我们在协程环境中调用。 但是,有时候我们也会遇到…

Socket进程间通信,从概念到实战(TCP,UDP,linux环境下C语言代码编写)

1、socket简述 Socket是一种通信机制&#xff0c;通过它可以在不同主机之间进行数据交换。在Socket编程中&#xff0c;有两种常见的通信模式&#xff1a;客户端-服务器模式和点对点模式。它基于TCP/IP协议栈&#xff0c;并使用IP地址和端口号来标识通信的目标。 2、Socket 基…

数据结构--树与二叉树

数据结构分类 集合 线性结构(一对一) 树形结构(一对多) 图结构(多对多) 数据结构三要素 1、逻辑结构 2、数据的运算 3、存储结构&#xff08;物理结构&#xff09; 树的概念 树的分类 满二叉树和完全二叉树 二叉排序树 平衡二叉树 二叉树分类总结 二叉树的存储结构 …

NVIDIA液冷技术革新:GB200 的挑战与机遇

英伟达 (Nvidia) 最近的一个创新与比特和字节无关。这是一项液冷技术创新。英伟达即将推出的 GB200 服务器机架将主要通过在硬件管道里循环的液体、而不是空气来冷却&#xff0c;该机架包含英伟达下一代 Blackwell 芯片。 英伟达发言人表示&#xff0c;该公司还在与供应商合作…

【人工智能】助力音乐产业

了解人工智能如何通过先进的制作和作曲工具改变音乐产业&#xff0c;创造创新的声音并重塑音乐创作。 人工智能在音乐行业中发挥着重要作用&#xff08;这是双关语&#xff09;。它影响着从艺术家创作音乐的方式到营销和发行的一切。鉴于人工智能的巨大力量&#xff0c;这项创新…

探索数据可视化,数据看板在各行业中的应用

数据可视化是一种通过图形化手段将数据呈现出来的技术&#xff0c;它将复杂的数据和信息转化为易于理解的图表、地图、仪表盘等视觉元素&#xff0c;使得数据的模式、趋势和关系更加直观地展现出来。通过数据可视化&#xff0c;用户可以快速识别重要信息、发现潜在问题&#xf…

【网络】IO

IO 一、五种IO模型同步通信 vs 异步通信阻塞 vs 非阻塞 二、其他高级IO非阻塞IOSetNoBlockI/O多路转接之selectselect函数原型fd_set&#xff08;位图&#xff09;select代码select缺点poll&#xff08;用select修改&#xff09; I/O多路转接之epoll高级版改进select和poll的问…