SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Error in Create Table command
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

lilmoore1000
Starting Member

2 Posts

Posted - 05/01/2012 :  01:26:11  Show Profile  Reply with Quote

SQL> CREATE TABLE TEAMSTADIUMS
2 (
3 S_Id INT NOT NULL PRIMARY KEY,
4 S_NAME VARCHAR(20),
5 T_ID INT FOREIGN KEY REFERENCES MLBTEAMS(T_ID)
6 );
T_ID INT FOREIGN KEY REFERENCES MLBTEAMS(T_ID)
*
ERROR at line 5:
ORA-00907: missing right parenthesis

i am a complete noob to SQL and i cant figure out where the missing right parenthesis goes :(

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1773 Posts

Posted - 05/01/2012 :  01:29:39  Show Profile  Visit jackv's Homepage  Reply with Quote
This is an Oracle error . You're on a SQL server forum.
www.dbforums.com cover Oracle questions


Jack Vamvas
--------------------
http://www.sqlserver-dba.com

Edited by - jackv on 05/01/2012 01:30:17
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000