473,513 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

missing right parenthesis when creating table

1 New Member
I am trying to complete a project but i keep getting "missing right parenthesis" error when i try to create a table:

Expand|Select|Wrap|Line Numbers
  1. CREATE TABLE SKILLS (
  2. SkillsID Char(4) NOT NULL,
  3. ConsultantID Char(4) NOT NULL,
  4. ExpertiseID Char(4) NOT NULL,
  5. MonthsExperience Numeric(10) NOT NULL,
  6.  
  7. CONSTRAINT SkillsPK PRIMARY KEY (SkillsID),
  8.  
  9. CONSTRAINT SkillsConsultFK FOREIGN KEY(ConsultantID)
  10.                 REFERENCES CONSULTANTS(ConsultantID)
  11.                 ON DELETE CASCADE
  12.                 ON UPDATE NO ACTION,
  13.  
  14. CONSTRAINT SkillsExpertiseFK FOREIGN KEY(ExpertiseID)
  15.                 REFERENCES EXPERTISE(ExpertiseID)
  16.                 ON DELETE CASCADE
  17.                 ON UPDATE NO ACTION
  18. )

PLEASEEEE all help is greatly appreciated!!!
Apr 28 '11 #1
1 4079
debasisdas
8,127 Recognized Expert Expert
try this.

Expand|Select|Wrap|Line Numbers
  1.     CREATE TABLE SKILLS (
  2.     SkillsID Char(4) NOT NULL,
  3.     ConsultantID Char(4) NOT NULL,
  4.     ExpertiseID Char(4) NOT NULL,
  5.     MonthsExperience Numeric(10) NOT NULL,     
  6.     CONSTRAINT SkillsPK PRIMARY KEY (SkillsID),     
  7.     CONSTRAINT SkillsConsultFK FOREIGN KEY(ConsultantID)
  8.                     REFERENCES CONSULTANTS(ConsultantID)
  9.                     ON DELETE CASCADE
  10.                     ON UPDATE NO ACTION,     
  11.     CONSTRAINT SkillsExpertiseFK FOREIGN KEY(ExpertiseID)
  12.                     REFERENCES EXPERTISE(ExpertiseID)
  13.                     ON DELETE CASCADE
  14.                     ON UPDATE NO ACTION
  15.     )
Apr 28 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
6750
by: bazubwabo | last post by:
hi everybody, by creating my employee table ,i've gotten a missing right parenthesis error but i don't know why.Could please help me to find out the error. SQL> CREATE TABLE EMPLOYEE 2 ...
2
3351
by: keokepa | last post by:
hi, i got this missing right parenthesis error while trying to create a table and i'm not too sure where i went wrong could someone point out my mistakes? this is what i had typed into Oracle...
3
4708
by: Thakur vikas | last post by:
when we run the query then we got ": (Error): ORA-00907: missing right parenthesis" what may be the error?
4
2262
by: antpal | last post by:
I am not sure exactly what i am doing run but when I run this code in sql plus i get constraint error on most of my tables except author and books table. Please help I am new to Programming in...
2
4448
by: arjenkeijman | last post by:
Hello everybody, Im trying to run a sql-script, but every time I runs it, I get the following errormessage. "mountain_range_ID INTEGER GENERATED ALWAYS AS IDENTITY *...
1
3376
karlectomy
by: karlectomy | last post by:
Hi all, I'm trying to run this table creation script but I run into the ORA-00907 error: missing right parenthesis. Perhaps someone might know where I am going wrong? CREATE TABLE...
1
3443
by: ozarka | last post by:
This select statement works and gives me True/False in RC33 column however the second statement gives me following error. Any idea? odbc--call failed. ora-00907: missing right parenthesis -...
2
2312
by: yashpalraghav | last post by:
create table y_employees (employee_id number primary key, first_name varchar2(20), last_name varchar2(20),phone_number varchar2(20) unique, hire_date varchar2(20) not null, job_id varchar2(20),...
4
5382
by: dbrother | last post by:
Hello All, I've been plugging away at testing some VBA SQL that executes when a user clicks a button from a 'custom query' form. The user has lots of options as to what parameters should be...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.