Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Not Properly Ended

Status
Not open for further replies.

Dario1984

Technical User
Aug 23, 2005
12
0
0
AU
Hi,

I'm just starting out in the world of SQL and I wrote some code and got an error like this :
SQL>
SQL> ALTER TABLE Book
2 MODIFY CONSTRAINT Book_CHK1
3 (topic IN ('ART', 'ARCHITECTURE', 'BIOGRAPHY', 'CHILDREN', 'COMPUTER',
4 'COOKING', 'FOOD AND WINE', 'GARDENING', 'HEALTH', 'HISTORY', 'GEOGRAPHY',
5 'SCIENCE','RELIGION', 'ROMANCE', 'SPORT', 'OTHER' ));
(topic IN ('ART', 'ARCHITECTURE', 'BIOGRAPHY', 'CHILDREN', 'COMPUTER',
*
ERROR at line 3:
ORA-00933: SQL command not
properly ended

Could anyone who has experinced this tell me what's wrong ? If I put it all on one like without Enter characters, it still doesn't work.
 
This being an Oracle DDL/SQLPlus questions, you are better of with other forums:
9i: 10g:
Constraints are always database specific and don't come with ANSI SQL.

anyway for a quick response:
I suppose this is a check constraint, so the keyword CHECK is actually missing between the constraint name and the condition


Juliane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top