简体   繁体   English

NexusDB: <unnamed TnxODBCQuery instance> :查询执行失败:在行比较时键入不匹配(nxtInterval &lt;&gt; nxtNullString)

[英]NexusDB: <unnamed TnxODBCQuery instance>: Query execution failed: Type mismatch (nxtInterval <> nxtNullString) when comparing at line

Getting the error below, when I was trying to pull the records from Nexus Database. 当我试图从Nexus数据库中提取记录时,获取下面的错误。

Error: 错误:

NexusDB: : Query execution failed: Type mismatch (nxtInterval <> nxtNullString) when comparing at [$3CA0/15520] NexusDB ::查询执行失败:在[$ 3CA0 / 15520]进行比较时输入不匹配(nxtInterval <> nxtNullString)

Query: 查询:

SELECT * from 
FROM Student
INNER JOIN Department on Department.Code =  Student.DepartmentCode AND (Department.INACTIVE = false OR Department.INACTIVE IS NULL) 
WHERE  Student.DepartmentCode in ?listofCode?

listofCode=> 'Mec,Ece' listofCode =>'Mec,Ece'

Note: We are using Dapper 注意:我们正在使用Dapper

Using a parameter for the IN ... list is not supported. 不支持使用IN ...列表的参数。 Use literals, eg IN ('Mec', 'Ece') 使用文字,例如IN('Mec','Ece')

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

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