Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SQL> connect
Enter user-name: system
Enter password:
Connected.
SQL> create table dept55(departmentid number(4),)
2
SQL> create table dept55(departmentid number(4),deptname varchar2(20),managerid
number(4),managername varchar2(20),locationid number(4)) ;
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
DEPARTMENTID DEPTNAME
------------ --------------------
101 dcs
102 dop
103 dms
104 det
105 dl
Table dropped.
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
4 rows deleted.
0 rows deleted.
SQL> select name from stu55 order by name DESC;
no rows selected
no rows selected
no rows selected
no rows selected
no rows selected
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row updated.
Table dropped.
Table created.
Table created.
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00904: "EMPNAME": invalid identifier
Table created.
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-04044: procedure, function, package, or type is not allowed here
Table created.
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
Table created.
SQL> alter table emp9 add FORIEGN KEY (deptno) REFERENCES dept6(deptno);
alter table emp9 add FORIEGN KEY (deptno) REFERENCES dept6(deptno)
*
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option
SQL> alter table emp9 add FORIEGN KEY (deptno) REFERENCES dept8(deptno);
alter table emp9 add FORIEGN KEY (deptno) REFERENCES dept8(deptno)
*
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option
SQL> alter table emp9 ADD FORIEGN KEY (deptno) REFERENCES dept8(deptno);
alter table emp9 ADD FORIEGN KEY (deptno) REFERENCES dept8(deptno)
*
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option
SQL>