SELECT Date FROM Table1 WHERE Id = 12
结果是 2013-09-02
我想得到 20130902
其中Date是nvarchar
SELECT replace(Date,'-','') FROM Table1 WHERE Id = 12
用日期格式化函数
代码?
@Eysa: 直接替换SELECT replace('2013-09-02','-','')