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


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 -624

   
 
  • Causa
    • TABLE table-name ALREADY HAS A PRIMARY KEY OR UNIQUE KEY CONSTRAINT WITH SPECIFIED COLUMNS.

      The code is used to report that a primary key or unique key cannot be defined in an ALTER TABLE statement because the table either:
      • Already has a primary key, or
      • Has an existing unique constraint with the same definition (same set of columns specified) as the new key.
  • Ação do sistema
    • The statement cannot be run.
  • Resposta ao Desenvolvedor
    • Do not attempt to define a table with more than one primary key, or a unique constraint that duplicates the definition of an existing unique constraint.

      SQLSTATE: 42889

© Copyright IBM Corp.