oracle 建表后显示:table or view does not exist ,我是在linux下建的,还是个菜鸟
SQL>createtableemp(2empnoNUMBER(5)PRIMARYKEY,3enameVARCHAR2(15)NOTNULL,4jobVARCHAR2(1...
SQL> create table emp (
2 empno NUMBER(5) PRIMARY KEY,
3 ename VARCHAR2(15) NOT NULL,
4 job VARCHAR2(10),
5 mgr NUMBER(5),
6 hiredate DATE DEFAULT (sysdate),
7 sal NUMBER(7,2),
8 comn NUMBER(7,2),
9 deptno NUMBER(3) NOT NULL
10 CONSTRAINT dept_fkey REFERENCES dept)
11 PCTFREE 10
12 PCTUSED 40
13 TABLESPACE users
14 STORAGE ( INITIAL 50K
15 NEXT 50K
16 MAXEXTENTS 10
17 PCTINCREASE 25 );
CONSTRAINT dept_fkey REFERENCES dept)
*
ERROR at line 10:
ORA-00942: table or view does not exist
程序和出错如上,烦请前辈、达人赐教
还想问下有没有好的学习资料可以介绍,我有sql server基础,但是linux和oracle才初学,很多很基本的东西都不懂~~
拜谢~~ 展开
2 empno NUMBER(5) PRIMARY KEY,
3 ename VARCHAR2(15) NOT NULL,
4 job VARCHAR2(10),
5 mgr NUMBER(5),
6 hiredate DATE DEFAULT (sysdate),
7 sal NUMBER(7,2),
8 comn NUMBER(7,2),
9 deptno NUMBER(3) NOT NULL
10 CONSTRAINT dept_fkey REFERENCES dept)
11 PCTFREE 10
12 PCTUSED 40
13 TABLESPACE users
14 STORAGE ( INITIAL 50K
15 NEXT 50K
16 MAXEXTENTS 10
17 PCTINCREASE 25 );
CONSTRAINT dept_fkey REFERENCES dept)
*
ERROR at line 10:
ORA-00942: table or view does not exist
程序和出错如上,烦请前辈、达人赐教
还想问下有没有好的学习资料可以介绍,我有sql server基础,但是linux和oracle才初学,很多很基本的东西都不懂~~
拜谢~~ 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询