SQL - SQLCODE's - Códigos negativos -840


Volta a página anterior

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

SQLCode -840

   
 
  • Causa
    • Os itens retornados em uma lista de SELECT ou presentes em um INSERT excede o número máximo permitido.

      O número de itens retornados em um SELECT ou presentes em um INSERT excede o número máximo permitido que é de 750 (setecentos e cinquenta).
  • Ação do sistema
    • A declaração não pode ser executada.
  • Resposta ao Desenvolvedor
    • Determine whether all the information is actually needed.
      (Note that the number of items returned by the select list * in the SQL statement SELECT * FROM A, B, C is the sum of the number of columns in all three tables.)
      If not, rewrite the SQL statement so that only the necessary items of information are returned.
      If so, break the SQL statement up into two or more statements, as required.

      SQLSTATE: 54004
© Copyright IBM Corp.