SQL Server 2005 Common Built-in Functions
SQL Server Built-in Functions.
-Replace的用法:
select replace('zhou','z','x')
select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','')
--20090331151201
-Date Format:
select CONVERT(varchar,getdate(),120)
--2009-03-31 15:10:02
select CONVERT(varchar(12) , getdate(), 111)
--2009/03/31
select CONVERT(varchar(12) , getdate(), 112)
--20090331
select CONVERT(varchar(12) , getdate(), 102)
--2009.03.31
select CONVERT(varchar(12) , getdate(), 108)
--15:13:26
 String Functions.
String Functions.
 Sql Date Functions
Sql Date Functions 
                    
                


 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号