在构建数据库时,无法弄清楚我的语法有什么问题,当我尝试语法
时,我们非常感谢您提供任何解释方面的帮助。select *
from movies;
当只有13行时,它将显示44行,并且外星人将在某个时刻多次显示。
SQL错误:ORA-12899:列太大了 " SYSDBA"" MOVIES"" MOVIE_CATEGORY" (实际:5,最大值:1)
这是我的语法
CREATE TABLE MOVIES
(MovieID NUMBER(2),
Movietitle VARCHAR(50),
Movievalue NUMBER(2),
Moviequantity NUMBER(2),
categoryID NUMBER (1),
MovieCategory VARCHAR (20));
INSERT INTO MOVIES
VALUES (1,'Alien',10,5,1,'SciFi');
INSERT INTO MOVIES
VALUES (2,'Bladerunner',8,3,1,'SciFi');
INSERT INTO MOVIES
VALUES (3,'Star Wars',15,11,1,'SciFi');
INSERT INTO MOVIES
VALUES (4,'Texas Chainsaw Masacre',7,2,2,'Horror');
INSERT INTO MOVIES
VALUES (5,'JAWS',7,1,2,'Horror');
INSERT INTO MOVIES
VALUES (6,'The good, the bad, and the ugly',7,2,3,'Western');
INSERT INTO MOVIES
VALUES (7,'Silverado',7,1,3,'Western');
INSERT INTO MOVIES
VALUES (8,'Duck Soup',5,1,4,'Comedy');
INSERT INTO MOVIES
VALUES (9,'Planes, trains, and automobiles',5,3,4,'Comedy');
INSERT INTO MOVIES
VALUES (10,'Walking Ned Devine',12,4,4,'Comedy');
INSERT INTO MOVIES
VALUES (11,'Deep Blue Sea',14,3,5, 'Drama');
INSERT INTO MOVIES
VALUES (12,'The Fifth Element',15,5,5,'Drama');