admin 管理员组

文章数量: 1087139


2024年3月12日发(作者:python中main函数怎么用)

一、Oracle的日期函数:

Oracle从8i开始就提供了大量的日期函数,这些日期函数包括对日期进行加减、转

换、截取等功能。下面是Oracle提供的日期函数一览表 Function

Use

ADD_MONTHS

Adds months to a date

LAST_DAY

Computes the last day of the month

MONTHS_BETWEEN

Determines the number of months between two dates

NEW_TIME

Translates a time to a new time zone

NEXT_DAY

Returns the date of the next specified weekday

ROUND

Rounds a date/time value to a specified element

SYSDATE

Returns the current date and time

TO_CHAR

Converts dates to strings

TO_DATE

Converts strings and numbers to dates

TRUNC

Truncates a date/time value to a specific element

二、日期加减:

在Oralce中,对日期进行加减操作的默认单位是天,也就是说如果我们向当前日期加


本文标签: 函数 进行 加减 提供 截取