--StartWe all know that numbers can be added, minus, multiply, divide, and so on. So, could the date be? The answer is that the date can only be added, minus operations.Before starting the operation date, let's look at what date data types are
No nonsense.CodeThe comment is very detailed. It is certainly okay to understand it!
Declare @ date datetimeSet @ date = getdate ()-The previous day, the previous day of the given dateSelect dateadd (day,-1, @ date) as 'previous Day'-The next day,
The first day of the month on which the given date is calculated
The trick is to calculate the
number of time intervals between the current date and "1900-01-01" and then add it to "1900-01-01" to get a special date, a technique that can be
Java get millisecond: system. currenttimemillis () Java get nanosecond: system. nanotime () (used to get very accurate time, recommended !) Java obtains the current date: gregoriancalendar date_1 = (gregoriancalendar) calendar. getinstance (); Java.
Calculate the SQL statement of the last day of the last month of the given date.
Calculate the SQL statement of the last day of the last month of the given date.
Calculate the SQL statement of the last day of the last month of the given date.
DECLARE @ DateDATETIMESET @ DateGETDATE () -- previous DAY, previous DAY of given Date SELECTDATEADD (DAY,-1, @ Date) AS previous DAY -- next DAY, next DAY of given Date SELECTDATEADD (DAY, 1, @ Date) AS the next day GO -- the beginning of the month,
Using date types in PL/SQLThe previous article described the use of strings and numbers in PL/SQL. There is no doubt that strings and numbers are important, but you can be sure that no application is dependent on the date.You need to record events,
DateTime is the most commonly used date type in SQL.Storage size: 8 bytes;Date range: 1753-01-01 to 9999-12-31;Accuracy: 3.33 ms;Common Date function getdate () Gets the current date of the systemSelect GETDATE ()DatePart (Part,dtvalue) Gets the
Oracle date functions are already available on the Internet. Let's focus on it to avoid your troubles.
Oracle date functions are already available on the Internet. Let's focus on it to avoid your troubles.
In the development of oracle databases,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.