你看下你日期是datetime类型还是varchar类型如果是varchar类型select replace(replace(replace(日期字段,'-',''),':',''),' ','') from 表名如果是datetime类型select replace(replace(replace(convert(varchar,日期字段,120),'-',''),':',''),' ','') from 表名