[求助]一个sql在查询分析器里执行没问题,jdbc中就出错
ERROR [http-80-Processor25] (CommonDAO.java:461) - [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]向 substring 函数传递了无效的 length 参数。 Query: select max(convert(decimal(10,0),substring(contractno,len(wxhtno)+1,len(contractno)-len(wxhtno)-1))) from domestic_contract_tbl where wxhtid=? and isnumeric (substring(contractno,len(wxhtno)+1,len(contractno)-len(wxhtno)-1))=1 Parameters: [1198825637593000814]
ms sqlserver 2k,ms自己的jdbc