简体   繁体   English

通过转换查询找不到多部分标识符

[英]The multi-part identifier could not be found via convert query

 select convert(date, Main_Users_ActivityLog.CreateDate);

I'm having trouble working on this query. 我在处理此查询时遇到问题。 How can I convert all contributions from a column to the type I wish to use, only a line of code? 如何将所有贡献从一列转换为我希望使用的类型,仅一行代码?

You need to add FROM clause: 您需要添加FROM子句:

select convert(date, Main_Users_ActivityLog.CreateDate)
FROM Main_Users_ActivityLog;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM