SQL Server CONVERT 函数测试结果

感兴趣的小伙伴,下面一起跟随编程之家 jb51.cc的小编两巴掌来看看吧!

代码如下:


SELECT CONVERT(varchar(100),GETDATE(),0): 05 16 2006 10:57AM 
SELECT CONVERT(varchar(100),1): 05/16/06 
SELECT CONVERT(varchar(100),2): 06.05.16 
SELECT CONVERT(varchar(100),3): 16/05/06 
SELECT CONVERT(varchar(100),4): 16.05.06 
SELECT CONVERT(varchar(100),5): 16-05-06 
SELECT CONVERT(varchar(100),6): 16 05 06 
SELECT CONVERT(varchar(100),7): 05 16,06 
SELECT CONVERT(varchar(100),8): 10:57:46 
SELECT CONVERT(varchar(100),9): 05 16 2006 10:57:46:827AM 
SELECT CONVERT(varchar(100),10): 05-16-06 
SELECT CONVERT(varchar(100),11): 06/05/16 
SELECT CONVERT(varchar(100),12): 060516 
SELECT CONVERT(varchar(100),13): 16 05 2006 10:57:46:937 
SELECT CONVERT(varchar(100),14): 10:57:46:967 
SELECT CONVERT(varchar(100),20): 2006-05-16 10:57:47 
SELECT CONVERT(varchar(100),21): 2006-05-16 10:57:47.157 
SELECT CONVERT(varchar(100),22): 05/16/06 10:57:47 AM 
SELECT CONVERT(varchar(100),23): 2006-05-16 
SELECT CONVERT(varchar(100),24): 10:57:47 
SELECT CONVERT(varchar(100),25): 2006-05-16 10:57:47.250 
SELECT CONVERT(varchar(100),100): 05 16 2006 10:57AM 
SELECT CONVERT(varchar(100),101): 05/16/2006 
SELECT CONVERT(varchar(100),102): 2006.05.16 
SELECT CONVERT(varchar(100),103): 16/05/2006 
SELECT CONVERT(varchar(100),104): 16.05.2006 
SELECT CONVERT(varchar(100),105): 16-05-2006 
SELECT CONVERT(varchar(100),106): 16 05 2006 
SELECT CONVERT(varchar(100),107): 05 16,2006 
SELECT CONVERT(varchar(100),108): 10:57:49 
SELECT CONVERT(varchar(100),109): 05 16 2006 10:57:49:437AM 
SELECT CONVERT(varchar(100),110): 05-16-2006 
SELECT CONVERT(varchar(100),111): 2006/05/16 
SELECT CONVERT(varchar(100),112): 20060516 
SELECT CONVERT(varchar(100),113): 16 05 2006 10:57:49:513 
SELECT CONVERT(varchar(100),114): 10:57:49:547 
SELECT CONVERT(varchar(100),120): 2006-05-16 10:57:49 
SELECT CONVERT(varchar(100),121): 2006-05-16 10:57:49:513 
SELECT CONVERT(varchar(100),126): 2006-05-16T10:57:49.827 
SELECT CONVERT(varchar(100),130): 18 ???? ?????? 1427 10:57:49:907AM 
SELECT CONVERT(varchar(100),131): 18/04/1427 10:57:49:920AM

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...