Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. Table CUSTOMER_TBL created.
  2.  
  3.  
  4. Table COMMERCIAL_TBL created.
  5.  
  6. Table ORDER_TBL created.
  7.  
  8.  
  9. Table PAYMENT_TBL created.
  10.  
  11.  
  12. Table PAY_LINK_TBL created.
  13.  
  14. Table PRODUCT_TBL created.
  15.  
  16.  
  17. Table PRODUCT_CATEGORY_TBL created.
  18.  
  19.  
  20. Error starting at line : 70 in command -
  21. CREATE TABLE product_category_link_tbl
  22. (
  23.  
  24. category_id CONSTRAINT REFERENCES product_category_tbl(category_id),
  25. product_id CONSTRAINT REFERENCES product_tbl(product_id),
  26. CONSTRAINT product_category_link_pk PRIMARY KEY (category_id, product_id)
  27. )
  28. Error report -
  29. SQL Error: ORA-02253: constraint specification not allowed here
  30. 02253. 00000 - "constraint specification not allowed here"
  31. *Cause: Constraint specification is not allowed here in the statement.
  32. *Action: Remove the constraint specification from the statement.
  33. Table DELIVERY_TBL created.
  34.  
  35.  
  36. Error starting at line : 86 in command -
  37. CREATE TABLE order_item_tbl
  38. (
  39. order_quantity NUMBER(5) CONSTRAINT order_quantity_nn NOT NULL,
  40. order_id CONSTRAINT REFERENCES order_tbl(order_id),
  41. delivery_id CONSTRAINT REFERENCES delivery_tbl(delivery_id),
  42. product_id CONSTRAINT REFERENCES product_tbl(product_id),
  43. CONSTRAINT order_item_tbl_pk PRIMARY KEY (order_id, delivery_id, product_id)
  44. )
  45. Error report -
  46. SQL Error: ORA-02253: constraint specification not allowed here
  47. 02253. 00000 - "constraint specification not allowed here"
  48. *Cause: Constraint specification is not allowed here in the statement.
  49. *Action: Remove the constraint specification from the statement.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement