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.
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.