So ive created a table catalogue with the following command:
and inserting a row with the following command:
I've tried loads of different films, genres etc, but they all seem to result in the error message "ORA-01438: value larger than specified precision allowed for this column".
Now i really have no clue why it wont add the rows because as far as i can see the values im entering are within valid ranges.
Could anyone please enlighten me as ive only been doing SQL for a few weeks
Code:
CREATE TABLE CATALOGUE
(CATALOGUENUMBER VARCHAR2(6) NOT NULL,
TITLE VARCHAR2(30) NOT NULL,
GENRE VARCHAR2(20) NOT NULL,
SUPPLIER VARCHAR2(20) NOT NULL,
RELEASEDATE DATE,
CERTIFICATE VARCHAR2(3) NOT NULL,
RENTALCOST NUMBER(2,2) NOT NULL,
PRIMARY KEY (CATALOGUENUMBER));
Code:
INSERT INTO CATALOGUE VALUES ('C01001','X-Men 3: The Last Stand','Action','20th Century Fox',TO_DATE('02-OCT-2006', 'DD-MON-YYYY'),'12',4);
I've tried loads of different films, genres etc, but they all seem to result in the error message "ORA-01438: value larger than specified precision allowed for this column".
Now i really have no clue why it wont add the rows because as far as i can see the values im entering are within valid ranges.
Could anyone please enlighten me as ive only been doing SQL for a few weeks
