I'm trying to write a script in Apex to create multiple tables. The first table is created with no issues but every table after that one gives me a missing parenthesis issue. Sometimes it's the left, sometimes it's the right. I've tried everything with no avail.
I have debugged it numerous times, spoken with the others and have not found the solution.
Create Table Employee -- Creates Employee table and references it to ProjDept table ( EmployeeID Number(4) Not Null, FirstName VarChar2(15) Not Null, LastName VarChar2(20) Not Null, ProjDeptID Number(4) Not Null, PhoneNumber Number(10), Constraint Employee_pk Primary Key (EmployeeID), -- sets primary key for table Constraint Employee_FK Foreign Key References ProjDept(ProjDeptID)-- identifies foreign key ); This is the second table in the script that won't work, the next 2 tables generate similar errors.