Use the getdate () function to customize the Date Format
A very powerful date Formatting Function in SQL Server
Select convert (varchar (100), getdate (), 0): 05 16 2006 AM
Select convert (varchar (100), getdate (), 1): 05/16/06
Select convert
A very powerful date format function in SQL Server is commonly used:Select CONVERT (varchar), GETDATE (), 23): 2006-05-16Select CONVERT (varchar), GETDATE (), 0): 2006 10:57amSelect CONVERT (varchar), GETDATE (), 1): 05/16/06Select CONVERT (varchar),
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 (nvarchar), count_time,121): Convert is a date conversion function, typically in the time type (Datetime,smalldatetime) and the string type (Nchar,nvarchar, Char,varchar) 3 parameters of a function that are used when converting to each other,
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
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.