aiaiDBA

加微信获取免费职业规划+学习资料,了解年薪50万的DBA是如何练成的

13718043309

010-86462881

SQL-02126: Count of array elements cannot be negative (i.e. < 0)

SQL-02126: Count of array elements cannot be negative (i.e. < 0)
Cause: The precompiler found a negative number of array elements in the the N or F element of the SQLDA (SQL Descriptor Area, which is used with dynamic SQL Method 4). Before executing the DESCRIBE statement, N must be set to the dimension of the descriptor arrays. After executing the DESCRIBE statement, N must be reset to the actual number of variables DESCRIBEd, which is stored in the F variable.
Action: Check that the N or F variables are set to non-negative values.

请先 登录 后评论

1 个回答

小智
SQL-02126:数组元素的数量不能为负数(即<0),
.原因:预编译器在SQLDA的N或F元素(SQL描述符区域,它与动态SQL方法4一起使用)中发现了负数的数组元素。在执行DESCRIBE语句之前,必须将N设置为描述符数组的维。执行DESCRIBE语句后,必须将N重置为存储在F变量中的实际变量DESCRIBEd。,
.操作:检查N或F变量是否设置为非负值。,
.
请先 登录 后评论