Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
select convert(date, Main_Users_ActivityLog.CreateDate);
我在处理这个查询时遇到了麻烦。如何将列中的所有贡献转换为我希望使用的类型,只需一行代码?
您需要添加FROM子句:
FROM
select convert(date, Main_Users_ActivityLog.CreateDate) FROM Main_Users_ActivityLog;