How to Use substring in oracle Database CONVERT (varchar (12), getdate (), 112), substringgetdate
SqlserverI often need to perform some time-type field conversions, but I don't quite remember it. So I collected the following
CONVERT (varchar, GETDATE (), 120)This is a function of the MSSQL database, the function of the CONVERT function is to convert the data type. and the Convert (char (), opendate,120) You're asking is a function that formats the date field and
This is a function of the MSSQL database, the function of the CONVERT function is to convert the data type. and the Convert (char (), opendate,120) You're asking is a function that formats the date field and converts it into character formatting.
This article consists of three parts, collecting several methods for processing MSSQL datetime on the Internet. Here, we will sort the data according to my collection order.
Part 1: SQL statistics for this month and this weekStatistics for this
checkdate ($month, $date, $year)
If the applied value constitutes a valid date, the function returns to true. For example, for the error date February 31, 2005, this function returns FALSE.
Use this function to check the date and make the date
Common date functions
SQL Server time and date function detailed, SQL Server, time, date,
1. Current system date, time
Select GETDATE ()
2. DateAdd returns a new datetime value on the basis of adding a period of time to the specified date
For
In SQL Server, I often need to perform some time-type field conversions, but I don't quite remember it. So I collected the following SqlserverConvertDateTime-related materials and posted them on my site, it is convenient for you to search for it
checkdate ($month, $date, $year)If the value that is applied constitutes a valid date, the function returns True. For example, for an error date of February 31, 2005, this function returns to False.You can use this function to check the date and
SQL Server often to operate some time type of field conversion, I do not quite remember, so collected some of the following Sqlserverconvertdatetime related information published in their own small station, convenient for their later use when
server|sqlserver| function SQL Server commonly used time functions---GETDATE, getutcdate, datename SQL Server commonly used time functions---GETDATE, getutcdate, Datename Author: Amoy Net Date: 2005-4-12 15:53:24 Visits: Origin: Amoy-Net--http://www.
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.