0

我想转换这个查询的结果(字符串到日期时间)

SET [something] = dbo.fn_GetProfileElement('WelcomeSent',PropertyNames,PropertyValuesString)
FROM aspnet_Profile where  aspnet_Profile.UserId = CTUsers.userid

所以我试试这个:

SET [something] = CONVERT(DATETIME,(dbo.fn_GetProfileElement('WelcomeSent',PropertyNames,PropertyValuesString)
    FROM aspnet_Profile where  aspnet_Profile.UserId = CTUsers.userid),101)

但我收到此错误:

关键字“FROM”附近的语法不正确。

4

0 回答 0