无法绑定由多个部分组成的标识符 拷贝C#生成的代码在数据库中报错,但是用键盘输入可以运行
SELECT'A01','00000000',do.[OperationCode],dotl.OperationtypeDes,(dol.OperationDes+do....
SELECT
'A01'
,'00000000'
,do.[OperationCode]
,dotl.OperationtypeDes
,(dol.OperationDes+do.OperationData) as operationMessage
FROM [WorkStationDB].[dbo].[DeOperationLog] do
join DeOperationDefinition dod on dod.[OperationCode]=do.[OperationCode]
join DeOperationLanguageDes dol on dol.OperationcodeID=dod.OperationcodeID
join DeOperationTypeLanguageDes dotl on dotl.OperationType=dod.OperationType
and dol.languageid= dotl.languageid where DOL.LANGUAGEID=1
但是用删除DOL.LANGUAGEID=1 之后用键盘输入 DOL.LANGUAGEID=1 可以在数据库中查询到结果,很诡异 ,
在c#中的错误为 :无法绑定由多个部分组成的标识符 "do1.LANGUAGEID"。 展开
'A01'
,'00000000'
,do.[OperationCode]
,dotl.OperationtypeDes
,(dol.OperationDes+do.OperationData) as operationMessage
FROM [WorkStationDB].[dbo].[DeOperationLog] do
join DeOperationDefinition dod on dod.[OperationCode]=do.[OperationCode]
join DeOperationLanguageDes dol on dol.OperationcodeID=dod.OperationcodeID
join DeOperationTypeLanguageDes dotl on dotl.OperationType=dod.OperationType
and dol.languageid= dotl.languageid where DOL.LANGUAGEID=1
但是用删除DOL.LANGUAGEID=1 之后用键盘输入 DOL.LANGUAGEID=1 可以在数据库中查询到结果,很诡异 ,
在c#中的错误为 :无法绑定由多个部分组成的标识符 "do1.LANGUAGEID"。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询