我似乎总是收到错误消息“无法将类型为'System.Int64'的对象转换为类型为'System.String'的对象。”尝试从一个表中获取一列并将其放入另一个表时。我已经为其创建了以下SQL脚本:
// ...
output: {
path: root('./dist'),
filename: 'index.js',
libraryTarget: 'umd' // <-- this line
},
// ...
在VB.NET中,我有以下示例:
STUFF (ISNULL( (SELECT
(SELECT '§§ ' + CONTEXT
FROM NOTES P2
WHERE P2.CustomerID = P1.CustomerID
ORDER BY Customerid
FOR XML PATH('') )
FROM NOTES p1 WHERE CUSTOMERID IN (CUSTOMERS.CUSTOMERID)
GROUP BY Customerid
),'') ,1, 1, '') DriverNotes
仅当存在info.EmergencyContact = .GetString(31)
info.EmergencyContactPhone = .GetString(32)
info.DriverNotes = .GetString(33)
时,我才会收到错误,否则,如果没有错误,一切都会正常进行。我已经尝试了多种方法,其中包括在SQL中使用info.DriverNotes = .GetString(33)
和CAST
,但是没有运气。