Oracle时间函数

1. 时区

先说下时区,oracle时区分两种:数据库时区和会话时区。
查看数据库的时区:select dbtimezone from dual;
设置数据库时区:创建时指定:create database db1... set time_zone='+6:00'; 或后期修改:alter database set time_zone='+6:00';
查看当前会话的时区:select sessiontimezone from dual;
设置当前会话时区:alter session set time_zone='+06:00';

dbtimezone和sessiontimezone的英文释义:

DBTIMEZONE returns the value of the database time zone. The return type is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the user specified the database time zone value in the most recent CREATE DATABASE or ALTER DATABASE statement.

SESSIONTIMEZONE returns the time zone of the current session. The return type is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the user specified the session time zone value in the most recent ALTER SESSION statement.

Note:The default client session time zone is an offset even if the client operating system uses a named time zone. If you want the default session time zone to use a named time zone, then set the ORA_SDTZ variable in the client environment to an Oracle time zone region name. Refer to Oracle Database Globalization Support Guide for more information on this variable.

下面的查询示例的会话,设置了date的格式:

ALTER SESSION SET NLS_DATE_FORMAT = 'yyyy-mm-dd hh24:mi:ss'; 

各种时间格式可以查看官网:

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/sqlrf/Format-Models.html#GUID-24E16D8D-25E4-4BD3-A38D-CE1399F2897C

2. SYSDATE

返回数据库服务器所在操作系统的当前日期和时间,不受时区影响。英文释义:

SYSDATE returns the current date and time set for the operating system on which the database server resides. The data type of the returned value is DATE, and the format returned depends on the value of the NLS_DATE_FORMAT initialization parameter. The function requires no arguments. In distributed SQL statements, this function returns the date and time set for the operating system of your local database. You cannot use this function in the condition of a CHECK constraint.

Note:The FIXED_DATE initialization parameter enables you to set a constant date and time that SYSDATE will always return instead of the current date and time. This parameter is useful primarily for testing. Refer to Oracle Database Reference for more information on the FIXED_DATE initialization parameter.

 查询如下:

SQL> select sysdate from dual;SYSDATE
-------------------
2024-04-25 09:45:42

3. CURRENT_DATE

返回当前会话时区中的当前日期,受时区影响。英文释义:

CURRENT_DATE returns the current date in the session time zone, in a value in the Gregorian calendar of data type DATE.

 查询如下,注意看时区的影响:

SQL> select sessiontimezone from dual;SESSIONTIMEZONE
---------------------------------------------------------------------------
+08:00SQL> select sysdate,current_date from dual;SYSDATE             CURRENT_DATE
------------------- -------------------
2024-04-25 09:51:45 2024-04-25 09:51:45SQL> alter session set time_zone='+06:00';Session altered.SQL> select sysdate,current_date from dual;SYSDATE             CURRENT_DATE
------------------- -------------------
2024-04-25 09:52:20 2024-04-25 07:52:20

4. CURRENT_TIMESTAMP

语法:current_timestamp(precision)

返回会话时区的当前日期和时间, 如果省略精度,则默认值为6。返回类型是TIMESTAMP WITH TIME ZONE,受时区影响。英文释义:

CURRENT_TIMESTAMP returns the current date and time in the session time zone, in a value of data type TIMESTAMP WITH TIME ZONE. The time zone offset reflects the current local time of the SQL session. If you omit precision, then the default is 6. The difference between this function and LOCALTIMESTAMP is that CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE value while LOCALTIMESTAMP returns a TIMESTAMP value.

In the optional argument, precision specifies the fractional second precision of the time value returned.

查询如下:

SQL> select sysdate,current_date,current_timestamp from dual;SYSDATE             CURRENT_DATE        CURRENT_TIMESTAMP
------------------- ------------------- ---------------------------------------------------------------------------
2024-04-25 10:01:56 2024-04-25 08:01:56 25-APR-24 08.01.56.603271 AM +06:00

 5. LOCALTIMESTAMP

语法:localtimestamp(timestamp_precision)

LOCALTIMESTAMP以TIMESTAMP数据类型的值返回会话时区的当前日期和时间。这个函数和CURRENT_TIMESTAMP的区别在于LOCALTIMESTAMP返回一个TIMESTAMP值,而CURRENT_TIMESTAMP返回一个TIMESTAMP WITH TIME ZONE值。英文释义:

LOCALTIMESTAMP returns the current date and time in the session time zone in a value of data type TIMESTAMP. The difference between this function and CURRENT_TIMESTAMP is that LOCALTIMESTAMP returns a TIMESTAMP value while CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE value.

The optional argument timestamp_precision specifies the fractional second precision of the time value returned. 

 查询如下:

SQL> select sysdate,current_date,current_timestamp,localtimestamp from dual;SYSDATE             CURRENT_DATE        CURRENT_TIMESTAMP                                                           LOCALTIMESTAMP
------------------- ------------------- --------------------------------------------------------------------------- ---------------------------------------------------------------------------
2024-04-25 10:13:03 2024-04-25 08:13:03 25-APR-24 08.13.03.637959 AM +06:00                                         25-APR-24 08.13.03.637959 AM

6. SYSTIMESTAMP

返回数据库所在系统的系统日期,包括小数秒数和时区。返回类型是TIMESTAMP WITH TIME ZONE。英文释义:

SYSTIMESTAMP returns the system date, including fractional seconds and time zone, of the system on which the database resides. The return type is TIMESTAMP WITH TIME ZONE.

查询如下:

SQL> select sysdate,current_date,current_timestamp,localtimestamp,systimestamp from dual;SYSDATE             CURRENT_DATE
------------------- -------------------
CURRENT_TIMESTAMP
---------------------------------------------------------------------------
LOCALTIMESTAMP
---------------------------------------------------------------------------
SYSTIMESTAMP
---------------------------------------------------------------------------
2024-04-25 14:30:32 2024-04-25 12:30:32
25-APR-24 12.30.32.437528 PM +06:00
25-APR-24 12.30.32.437528 PM
25-APR-24 02.30.32.437524 PM +08:00

 7. ADD_MONTHS

语法:add_months(date, integer)

返回日期日期加上整数月份。date参数可以是一个datetime值或任何可以隐式转换为date的值。integer参数可以是整数或任何可以隐式转换为整数的值,正数往后,负数往前。如果date是该月的最后一天,或者结果月份的天数少于date的day值,则结果为结果月份的最后一天。否则,结果具有与date相同的day值。英文释义:

ADD_MONTHS returns the date date plus integer months. A month is defined by the session parameter NLS_CALENDAR. The date argument can be a datetime value or any value that can be implicitly converted to DATE. The integer argument can be an integer or any value that can be implicitly converted to an integer. The return type is always DATE, regardless of the data type of date. If date is the last day of the month or if the resulting month has fewer days than the day component of date, then the result is the last day of the resulting month. Otherwise, the result has the same day component as date.

查询如下:

SQL> select add_months('2024-03-31',-1) from dual;ADD_MONTHS('2024-03
-------------------
2024-02-29 00:00:00SQL> select add_months('2024-03-31',-2) from dual;ADD_MONTHS('2024-03
-------------------
2024-01-31 00:00:00

8. MONTHS_BETWEEN

语法:months_between(date1,date2)

返回日期date1和日期date2之间的月数,也许有小数。英文释义:

MONTHS_BETWEEN returns number of months between dates date1 and date2. The month and the last day of the month are defined by the parameter NLS_CALENDAR. If date1 is later than date2, then the result is positive. If date1 is earlier than date2, then the result is negative. If date1 and date2 are either the same days of the month or both last days of months, then the result is always an integer. Otherwise Oracle Database calculates the fractional portion of the result based on a 31-day month and considers the difference in time components date1 and date2.

查询如下:

select months_between('2024-04-25', '2024-04-23') from dual;MONTHS_BETWEEN('2024-04-25','2024-04-23')
-----------------------------------------.064516129SQL> select months_between('2024-03-25', '2024-04-23') from dual;MONTHS_BETWEEN('2024-03-25','2024-04-23')
------------------------------------------.93548387SQL> select months_between('2024-04-25', '2024-04-25') from dual;MONTHS_BETWEEN('2024-04-25','2024-04-25')
-----------------------------------------0

求两个日期的差

date可以直接相减,得到的就是差值,不过有可能有小数,所以可能需要结合trunc函数等一起使用。

查询如下:

SQL> select to_date('2024-03-25 12:23:32','yyyy-mm-dd hh24:mi:ss') - to_date('2024-03-16 11:22:11','yyyy-mm-dd hh24:mi:ss') as daydiff from dual;DAYDIFF
----------
9.04260417SQL> select trunc(to_date('2024-03-25 12:23:32','yyyy-mm-dd hh24:mi:ss')) - trunc(to_date('2024-03-16 11:22:11','yyyy-mm-dd hh24:mi:ss')) as daydiff from dual;DAYDIFF
----------9SQL> select to_date('2024-03-25 12:23:32','yyyy-mm-dd hh24:mi:ss') - 2 as daydiff from dual;DAYDIFF
-------------------
2024-03-23 12:23:32

9. EXTRACT (datetime)

语法:extract(x from expr)

x的可选值有:YEAR/MONTH/DAY/HOUR/MINUTE/SECOND/TIMEZONE_HOUR/TIMEZONE_MINUTE/TIMEZONE_REGION/TIMEZONE_ABBR

从日期时间或间隔表达式中提取并返回指定日期时间字段的值。expr可以是任何计算为与请求字段兼容的日期时间或间隔数据类型的表达式。英文释义:

EXTRACT extracts and returns the value of a specified datetime field from a datetime or interval expression. The expr can be any expression that evaluates to a datetime or interval data type compatible with the requested field:

  • If YEAR or MONTH is requested, then expr must evaluate to an expression of data type DATETIMESTAMPTIMESTAMP WITH TIME ZONETIMESTAMP WITH LOCAL TIME ZONE, or INTERVAL YEAR TO MONTH.

  • If DAY is requested, then expr must evaluate to an expression of data type DATETIMESTAMPTIMESTAMP WITH TIME ZONETIMESTAMP WITH LOCAL TIME ZONE, or INTERVAL DAY TO SECOND.

  • If HOURMINUTE, or SECOND is requested, then expr must evaluate to an expression of data type TIMESTAMPTIMESTAMP WITH TIME ZONETIMESTAMP WITH LOCAL TIME ZONE, or INTERVAL DAY TO SECONDDATE is not valid here, because Oracle Database treats it as ANSI DATE data type, which has no time fields.

  • If TIMEZONE_HOURTIMEZONE_MINUTETIMEZONE_ABBRTIMEZONE_REGION, or TIMEZONE_OFFSET is requested, then expr must evaluate to an expression of data type TIMESTAMP WITH TIME ZONE or TIMESTAMP WITH LOCAL TIME ZONE.

查询如下:

SQL> select sysdate from dual;SYSDATE
-------------------
2024-04-26 09:20:46SQL> select extract(year from sysdate) from dual;EXTRACT(YEARFROMSYSDATE)
------------------------2024SQL> select extract(month from sysdate) from dual;EXTRACT(MONTHFROMSYSDATE)
-------------------------4SQL> select extract(day from sysdate) from dual;EXTRACT(DAYFROMSYSDATE)
-----------------------26

10. TRUNC (date)

语法:trunc(date, fmt)

返回日期,其中一天的时间部分被截断为格式模型fmt指定的单位。不指定fmt的话,默认值是'DD',即将一天的时间格式化为 00:00:00。英文释义:

The TRUNC (date) function returns date with the time portion of the day truncated to the unit specified by the format model fmt. This function is not sensitive to the NLS_CALENDAR session parameter. It operates according to the rules of the Gregorian calendar. The value returned is always of data type DATE, even if you specify a different datetime data type for date. If you omit fmt, then the default format model 'DD' is used and the value returned is date truncated to the day with a time of midnight. Refer to "ROUND and TRUNC Date Functions" for the permitted format models to use in fmt.

查询如下:

SQL> select trunc(to_date('2024-03-25 12:23:32','yyyy-mm-dd hh24:mi:ss')) from dual;TRUNC(TO_DATE('2024
-------------------
2024-03-25 00:00:00SQL> select trunc(to_date('2024-03-25 12:23:32','yyyy-mm-dd hh24:mi:ss'), 'DD') from dual;TRUNC(TO_DATE('2024
-------------------
2024-03-25 00:00:00SQL> select trunc(to_date('2024-03-25 12:23:32','yyyy-mm-dd hh24:mi:ss'), 'YEAR') from dual;TRUNC(TO_DATE('2024
-------------------
2024-01-01 00:00:00

11. ROUND (date)

语法:round(date, fmt)

返回日期四舍五入到格式模型fmt指定的单位。如果省略fmt,则日期四舍五入到最接近的一天。这个和trunc的区别就是trunc是直接抹除,而round是四舍五入。英文释义:

ROUND returns date rounded to the unit specified by the format model fmt. This function is not sensitive to the NLS_CALENDAR session parameter. It operates according to the rules of the Gregorian calendar. The value returned is always of data type DATE, even if you specify a different datetime data type for date. If you omit fmt, then date is rounded to the nearest day. The date expression must resolve to a DATE value.

查询如下:

SQL> select round(to_date('2024-04-23 11:59:59', 'yyyy-mm-dd hh24:mi:ss')) as d from dual;D
-------------------
2024-04-23 00:00:00SQL> select round(to_date('2024-04-23 12:00:00', 'yyyy-mm-dd hh24:mi:ss')) as d from dual;D
-------------------
2024-04-24 00:00:00

12. TO_CHAR (datetime)

语法:to_char(date, fmt, 'nlsparam')

将date转化为fmt的字符串格式。英文释义:

TO_CHAR (datetime) converts a datetime or interval value of DATE, TIMESTAMP, TIMESTAMP WITH TIME ZONE, TIMESTAMP WITH LOCAL TIME ZONE, INTERVAL DAY TO SECOND, or INTERVAL YEAR TO MONTH data type to a value of VARCHAR2 data type in the format specified by the date format fmt. If you omit fmt, then date is converted to a VARCHAR2 value as follows:

DATE values are converted to values in the default date format.

TIMESTAMP and TIMESTAMP WITH LOCAL TIME ZONE values are converted to values in the default timestamp format.

TIMESTAMP WITH TIME ZONE values are converted to values in the default timestamp with time zone format.

Interval values are converted to the numeric representation of the interval literal.

查询如下:

SQL> select to_char(sysdate, 'yyyy-mm-dd hh24:mi:ss') as chardate from dual;CHARDATE
-------------------
2024-04-26 09:57:16SQL> select to_char(sysdate, 'yyyy/mm/dd hh24:mi:ss') as chardate from dual;CHARDATE
-------------------
2024/04/26 09:59:36

13. TO_DATE

语法:to_date(char, fmt, 'nlsparam')

将字符串转化为时间格式。英文释义:

TO_DATE converts char to a value of DATE data type.

查询如下:

SQL> select to_date('2024-04-26 12:23:32', 'yyyy-mm-dd hh24:mi:ss') from dual;TO_DATE('2024-04-26
-------------------
2024-04-26 12:23:32

14. TO_TIMESTAMP

语法:to_timestamp(char, fmt, 'nlsparam')

将字符串转化为timestamp时间格式。英文释义:

TO_TIMESTAMP converts char to a value of TIMESTAMP data type.

查询如下:

SQL> select to_timestamp('2024-04-26 12:23:32', 'yyyy-mm-dd hh24:mi:ss') from dual;TO_TIMESTAMP('2024-04-2612:23:32','YYYY-MM-DDHH24:MI:SS')
---------------------------------------------------------------------------
26-APR-24 12.23.32.000000000 PM

15. TO_TIMESTAMP_TZ

语法:to_timestamp_tz(char, fmt, 'nlsparam')

将字符串转化为timestamp_tz时间格式。英文释义:

TO_TIMESTAMP_TZ converts char to a value of TIMESTAMP WITH TIME ZONE data type.

查询如下:

SQL> select to_timestamp_tz('2024-04-26 12:23:32', 'yyyy-mm-dd hh24:mi:ss') from dual;TO_TIMESTAMP_TZ('2024-04-2612:23:32','YYYY-MM-DDHH24:MI:SS')
---------------------------------------------------------------------------
26-APR-24 12.23.32.000000000 PM +08:00

16. LAST_DAY

语法:last_day(date)

返回包含date的月份的最后一天的日期。英文释义:

LAST_DAY returns the date of the last day of the month that contains date. The last day of the month is defined by the session parameter NLS_CALENDAR. The return type is always DATE, regardless of the data type of date.

查询如下:

SQL> select last_day('2024-04-26') as ld from dual;LD
-------------------
2024-04-30 00:00:00SQL> select last_day('2024-03-11') as ld from dual;LD
-------------------
2024-03-31 00:00:00

17. NEXT_DAY

语法:next_day(date, char)

返回第一个以char命名的工作日的日期,该日期晚于日期date。参数char必须是会话日期语言中的星期几,可以是全名,也可以是缩写。英文释义:

NEXT_DAY returns the date of the first weekday named by char that is later than the date date. The return type is always DATE, regardless of the data type of date. The argument char must be a day of the week in the date language of your session, either the full name or the abbreviation. The minimum number of letters required is the number of letters in the abbreviated version. Any characters immediately following the valid abbreviation are ignored. The return value has the same hours, minutes, and seconds component as the argument date.

查询如下:

SQL> select next_day('2024-04-26','TUESDAY') as nexttue from dual;NEXTTUE
-------------------
2024-04-30 00:00:00SQL> select next_day('2024-04-26','TUE') as nexttue from dual;NEXTTUE
-------------------
2024-04-30 00:00:00

 18. NEW_TIME

语法:new_time(date,timezone1,timezone2)

将时间进行时区的转换。英文释义:

NEW_TIME returns the date and time in time zone timezone2 when date and time in time zone timezone1 are date. Before using this function, you must set the NLS_DATE_FORMAT parameter to display 24-hour time. The return type is always DATE, regardless of the data type of date.

查询如下:

SQL> select to_date('2024-10-01 12:00:00','yyyy-MM-dd hh24:mi:ss'),new_time(to_date('2024-10-01 12:00:00','yyyy-MM-dd hh24:mi:ss'),'EST','HST') from dual;TO_DATE('2024-10-01 NEW_TIME(TO_DATE('2
------------------- -------------------
2024-10-01 12:00:00 2024-10-01 07:00:00

参考文献:

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/sqlrf/Single-Row-Functions.html#GUID-5652DBC2-41C7-4F07-BEDD-DAF620E35F3C

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

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

相关文章

谷歌TPU(Tensor Processing Unit)

谷歌TPU(Tensor Processing Unit) https://cloud.google.com/tpu/docs/intro-to-tpu?hlzh-cn CPU的工作模式和GPU工作模式的区别 CPU 最大的优点是它们的灵活性。您可以在 CPU 上为许多不同类型的应用加载任何类型的软件。对于每次计算,CPU…

推荐免费的RVC模型下载网站

前沿 近年来,随着人工智能与计算机生成内容(AICG)技术的飞速发展,众多人才纷纷投身于这一领域。从ChatGPT到Stable Diffusion,再到RVC,这些广为人知的AI技术正逐步改变我们的生产方式。众所周知&#xff0…

【C++】:手撕红黑树(红黑树的模拟实现)

每日给大家介绍一家公司 如下 接下来我们进入正题 1.红黑树的概念 红黑树,是一种二叉搜索树,但在每个结点上增加一个存储位表示结点的颜色,可以是Red或Black。 通过对任何一条从根到叶子的路径上各个结点着色方式的限制,红黑树…

2024蓝桥杯CTF--逆向

蓝桥杯付费CT--逆向 题目:RC4题目:happytime总结: 题目:RC4 先查壳,无壳,并且是32位: 用32位的ida打开,直接定位到main函数: 重点关注sub_401005函数,这个应…

SDM模型——建模用户长短期兴趣的Match模型

1. 引言 SDM模型(Sequential Deep Matching Model)是阿里团队在2019年CIKM的一篇paper。模型属于序列召回模型,研究的是如何通过用户的历史行为序列去学习到用户的丰富兴趣。 SDM模型把用户的历史序列根据交互的时间分成了短期和长期两类,然后从短期会…

hwte git GitHub

电脑重装系统或者第一次配置HWTE Git,需要配置hosts文件 配置hosts 文件 1、先检查host文件:vim(sudo vim) /etc/hosts,是否配置了如下内容,没有的话,将如下内容加进去, #Radar hosts 17.34.114.138 atla…

构建NodeJS库--前端项目的打包发布

1. 前言 学习如何打包发布前端项目,需要学习以下相关知识: package.json 如何初始化配置,以及学习npm配置项; 模块类型type配置, 这是nodejs的package.json的配置main 入口文件的配置 webpack 是一个用于现代 JavaSc…

【动态规划】Leetcode 416. 分割等和子集【中等】

分割等和子集 给你一个 只包含正整数 的 非空 数组 nums 。请你判断是否可以将这个数组分割成两个子集,使得两个子集的元素和相等。 示例 1: 输入:nums [1,5,11,5] 输出:true 解释:数组可以分割成 [1, 5, 5] 和 [1…

正则表达式的常见语法

目录 一、基本的正则表达式语法 1.1 字符类 1.2 单个字符的特殊表示 1.3 量词表示 1.4 边界匹配 1.5 分组与捕获 二 、java中的使用 在Java中使用正则表达式进行字符串匹配可以说是一个很重要的技能,尤其对于需要进行文本处理或者字符替换的程序来说&#xff0…

基于java+springboot+vue实现的个人博客系统(文末源码+Lw)200

摘 要 随着国内市场经济这几十年来的蓬勃发展,突然遇到了从国外传入国内的互联网技术,互联网产业从开始的群众不信任,到现在的离不开,中间经历了很多挫折。本次开发的个人博客系统,有管理员,用户&#xf…

excel一列同乘同一个数

excel一列同乘同一个数 第一种方法(excel本身功能) 在空白区域输入要乘以的数,比如0.5 右键选择复制 选中需要乘以的单元格,选择性粘贴 点击乘,选择确定 删除0.5后也不会改变值 第二种方法(方方格子…

HODL、FUD、FOMO 等其他比特币俚语是什么意思?

作者:Paxful Team 1、FOMO(惧怕错失机会) FOMO 是惧怕错失机会的缩写,可用于日常生活。它指的是当其他人都在谈论比特币时,产生的购买比特币的紧迫感。 2、Shill(不断推广吹捧) Shilling 是指…

上传jar到github仓库,作为maven依赖存储库

记录上传maven依赖包到github仓库问题 利用GitHubPackages作为依赖的存储库踩坑1 仓库地址问题踩坑2 Personal access tokens正确姿势一、创建一个普通仓库,比如我这里是fork的腾讯Shadow到本地。地址是:https://github.com/dhs964057117/Shadow二、生成…

[C++ QT项目实战]----C++ QT系统实现多线程通信

前言 在C QT中,多线程通信原理主要涉及到信号与槽机制和事件循环机制。 1、信号与槽机制: 在QT中,信号与槽是一种用于对象间通信的机制。对象可以通过发送信号来通知其他对象,其他对象通过连接槽来接收信号并进行相应的处…

mysql 临时表 dual postgre 是否也有

MySQL 和 PostgreSQL 对于 DUAL 表的处理方式有所不同: MySQL: MySQL 中确实存在一个名为 DUAL 的特殊表,但它是一个虚拟表,没有实际数据。其主要用途是为那些不需要从任何实际表中获取数据,但仍需要符合 SQL 语法规则…

39岁TVB靓仔小生自曝恋情,曾沦为洗车工如今半年赚足7位数

39岁高钧贤自从2005年参加香港先生选举夺冠后,之后加入TVB拍摄过多套电视剧集,最近更有份参与《逆天奇案2》,日前他回到TVB电视城一厂与冯盈盈宣传剧集,更随即拍摄短片纪录放在网上分享,意外曝光TVB餐厅餐单&#xff0…

MFRC50001T 封装SOP-32 高性能非接触式读写芯片

MFRC50001T是由NXP Semiconductors(恩智浦半导体)生产的一款高性能非接触式读写芯片。这款芯片主要针对13.56 MHz频段的RFID(无线射频识别)和MIFARE Classic协议,支持ISO/IEC 14443 Type A标准的多层应用。MFRC50001T芯…

pve(Proxmox VE)安装i225v网卡驱动

配置pve源 备份原来的源 mv /etc/apt/sources.list /etc/apt/sources.list.bak打开文件 vi /etc/apt/sources.list将以下内容粘贴进去 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmwaredeb https://mirrors.tuna.tsing…

计算机常识 | 快速格式化、擦除格式化、覆盖格式化 | 直连电脑可相互ping通

文章目录 一、快速格式化、擦除格式化、覆盖格式化二、两台没有联网的设备通过网线直接相连能够相互ping通的原因 一、快速格式化、擦除格式化、覆盖格式化 快速格式化、擦除格式化和覆盖格式化是针对计算机存储设备(如硬盘驱动器或固态硬盘)上数据删除和…