The following articles mainly describe the actual operation process for SQLServer to use convert to obtain datetime date data. In actual operations, converdatabase uses convert to obtain datetime date data, the following examples include conversion of various date formats. Statement and query result: SelectCONVERT (varchar (100), GETDATE (), 0): 05162
The following articles mainly describe the actual operation process of SQL Server to use convert to obtain datetime date data. In actual operation, SQL Server database uses convert to obtain datetime date data, the following examples include conversion of various date formats. Statement and query result: SelectCONVERT (varchar (100), GETDATE (), 0): 05162
The following articles mainly describe the actual operation process of SQL Server to use convert to obtain datetime date data. In actual operation, SQL Server database uses convert to obtain datetime date data, Hong Kong Server, the following examples include conversion of various date formats.
Statement and query result:
Select CONVERT (varchar (100), GETDATE (), 0): 05 16 2006 AM
Select CONVERT (varchar (100), GETDATE (), 1): 05/16/0
SQL Server uses convert to obtain datetime date data. It is a VM in Hong Kong. The following instances include conversion of various date formats.
Statement and query result:
Note:
SQL Server uses convert:
CONVERT (data_type [(length)], expression [, style])
Parameters
Expression
Is any valid Microsoft®SQL Server™Expression ..
Data_type
The data types provided by the target system, including bigint and SQL _variant. User-Defined data types cannot be used.
Length
Optional parameters of the nchar, nvarchar, char, varchar, binary, or varbinary data type.
Style
Date Format style, which converts datetime or smalldatetime data to character data (nchar, nvarchar, char, varchar, nchar, or nvarchar data type); or string format style, to convert float, real, money, or smallmoney data to character data (nchar, nvarchar, char, varchar, nchar, or nvarchar data type ).
, Server space