I entered the following SQL commands in Oracle but it complained “ORA-00922: missing or invalid option”
CREATE TABLE Student (
StuID NUMBER(15),
StuName VARCHAR2(50),
Phone VARCHAR2(20),
PRIMARY KEY (StuID))
CREATE TABLE Program (
ProCode VARCHAR2(12),
ProTitle VARCHAR2(50),
PRIMARY KEY (ProCode))
WHY???
If you are using the dreaded HTML GUI (inside the browser) of OracleXE then that does not support running more than one statement.
Use SQL Developer, SQL*Plus or any other GUI tool instead.