在SQL Server 2008中从年月日转换为CCYY-MM-DD
我有 结果是2019年12月3日 但是,我需要2019-03-12 我没有在任何日期指南中发现这种特殊格式 --如果是TSQL, 选择格式(GetDate(),'yyyy-MM-dd')作为'date\u needed\u by' --如果是TSQL,在SQL Server 2008中从年月日转换为CCYY-MM-DD,sql,sql-server,Sql,Sql Server,我有 结果是2019年12月3日 但是,我需要2019-03-12 我没有在任何日期指南中发现这种特殊格式 --如果是TSQL, 选择格式(GetDate(),'yyyy-MM-dd')作为'date\u needed\u by' --如果是TSQL, ,CONVERT (char,Getdate(),110) AS 'date_needed_by' 选择格式(GetDate(),'yyyy-MM-dd')作为'date\u needed\u by' ,CONVERT (char,Getdat
,CONVERT (char,Getdate(),110) AS 'date_needed_by'
选择格式(GetDate(),'yyyy-MM-dd')作为'date\u needed\u by'
,CONVERT (char,Getdate(),110) AS 'date_needed_by'
2019-03-2012年的工作和结果
2019-03-12的作品和结果本网站有你的答案,本网站有你的答案,可能重复