Oracle "ORA-00922" error

Thread Solved

Join Date: Jul 2008
Posts: 46
Reputation: robertmacedonia is an unknown quantity at this point 
Solved Threads: 0
robertmacedonia robertmacedonia is offline Offline
Light Poster

Oracle "ORA-00922" error

 
0
  #1
Apr 29th, 2009
Hello, I am trying to run my tables in the Sql Workshop using the Sql Commands option in Oracle, and I get this error - "ORA-00922: missing or invalid option". I read that this is somehow related to the NOT NULL option, but I think this is how my table should look like, and it still gives me an error. So, would you, please, take a look at it.

  1. CREATE TABLE Izraboteni proekti (
  2. Primaren_broj NUMERIC(30) NOT NULL ,
  3. Kandidat_ID NUMERIC(30) NOT NULL ,
  4. Tema VARCHAR(255) ,
  5. Ocena NUMERIC(30) ,
  6. PRIMARY KEY(Primaren_broj, Kandidat_ID),
  7. FOREIGN KEY(Kandidat_ID)
  8. REFERENCES Kandidat(Kandidat_ID));
Last edited by peter_budo; May 6th, 2009 at 3:13 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 10
Reputation: bigakis is an unknown quantity at this point 
Solved Threads: 2
bigakis bigakis is offline Offline
Newbie Poster

Re: Oracle "ORA-00922" error

 
1
  #2
Apr 29th, 2009
'Izraboteni proekti' it is not a a valid table name. you should put an underscore (Izraboteni_proekti).
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 46
Reputation: robertmacedonia is an unknown quantity at this point 
Solved Threads: 0
robertmacedonia robertmacedonia is offline Offline
Light Poster

Re: Oracle "ORA-00922" error

 
0
  #3
Apr 30th, 2009
I have no idea how I missed that Thanks a lot ! Greetings.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Database Design Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC