Guest User

Untitled

a guest
Oct 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. // Essa roda normal //
  2.  
  3. create table M_VENDEDORES (
  4. ID_VENDEDOR number (10,0) not null,
  5. NOME varchar2 (100) not null,
  6. CPF number (11,0) not null,
  7. ENDERECO varchar2 (100) not null,
  8. NUMERO varchar2 (10) not null,
  9. CEP number (11,0) not null,
  10. constraint PK_VENDEDOR PRIMARY KEY (ID_VENDEDOR),
  11. constraint UK_CPF unique (CPF)
  12. );
  13.  
  14. // Essa roda normal //
  15.  
  16. create table M_VENDAS (
  17. ID_VENDEDOR number (10,0) not null,
  18. MES varchar2 (100) not null,
  19. VENDAS number (10) not null,
  20. constraint FK_ID_VENDEDORES foreign key (ID_VENDEDOR)
  21. references M_VENDEDORES (ID_VENDEDOR)
  22. );
  23.  
  24. // Essa roda normal //
  25.  
  26. create table M_FORNECEDORES (
  27. ID_FORNECEDOR number (10,0) not null,
  28. NOME varchar2 (100) not null,
  29. CNPJ number (14) not null,
  30. constraint PK_FORNECEDOR PRIMARY KEY (ID_FORNECEDOR)
  31. );
  32.  
  33. // Essa não roda normal //
  34.  
  35. create table M_ESTOQUE (
  36. ID_FORNECEDOR number (10,0) not null,
  37. ID_ITEM number (10,0) not null,
  38. NOME varchar2 (100) not null,
  39. MODELO varchar2 (100) not null,
  40. TAMANHO varchar2 (10) not null,
  41. MARCA varchar2 (100) not null,
  42. ESTOQUE number (100) not null,
  43. constraint PK_ITEM PRIMARY KEY (ID_ITEM),
  44. constraint FK_ID_FORNECEDOR foreign key (ID_FORNECEDOR)
  45. references M_FORNECEDORES (ID_FORNECEDOR)
  46. );
  47.  
  48. Log do erro: create table M_ESTOQUE (
  49. ESTOQUE number (100,0)
  50. )
  51. Relatório de erros -
  52. ORA-01727: o especificador de precisão numérica está fora da faixa válida (1 a 38)
  53. 01727. 00000 - "numeric precision specifier is out of range (1 to 38)"
  54. *Cause:
  55. *Action:
Add Comment
Please, Sign In to add comment