select replace(replace(replace(CONVERT(varchar,getdate(),120),'-',''),' ',''),':','') --时间格式 : 20141001120101