A
AsleepAnge
Unregistered / Unconfirmed
GUEST, unregistred user!
SQL SERVER 2000 在做查询是服务器报错SELECT DWDJID,XMID,XMMC,Count(*) as SL,Sum(JG * ZK) AS JE,CONVERT(VARCHAR(10),JCSJ,126) JCRQFROM [TT_GR_XXB] WHERE DWDJID IS NOT NULL AND JCSJ IS NOT NULL AND CONVERT(VARCHAR(10),JCSJ,126)=@JCRQ AND FYLX=0 AND JCBZ=1 GROUP BY DWDJID,XMID,XMMC,CONVERT(VARCHAR(10),JCSJ,126)错误提示如下[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData (CheckforData()). 服务器: 消息 11,级别 16,状态 1,行 0 一般性网络错误。请检查网络文档。 连接中断自己跟踪发现,查询结果里面竟然有NULL,但是条件里有 DWJID IS NOT NULL ,DWDJID这个字段是VARCHAR