标签: date sql-server-2005 varchar
有人可以帮我更新varchar列中从Apr 12 2010 12:00AM到20100412的值吗?
varchar
Apr 12 2010 12:00AM
20100412
答案 0 :(得分:0)
试试这个:
select CONVERT(varchar,cast('Apr 12 2010 12:00AM' as datetime),112)