DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: re: sqlplus question

  1. #1
    Join Date
    Jan 2004
    Posts
    58

    Question re: sqlplus question

    hi! ,

    I have a file abc.sql
    which has the following commands

    drop table test
    /
    create table test(age number)
    /

    when I run the file from sqlplus using file -> open
    I get the following error
    SQL>
    1 drop table test
    2 /
    3* create table test(age number)
    SQL> /
    /
    *
    ERROR at line 2:
    ORA-00933: SQL command not properly ended


    how do I rectify this error ?

    thanks,
    harish
    thanks,
    harish

  2. #2
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Code:
    drop table test;
    
    create table test(age number);
    Abhay.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  3. #3
    Join Date
    Jan 2004
    Posts
    58

    Question trying what was suggested ..

    SQL>
    1 drop table test;
    2* create table test(age number);
    3 /
    drop table test;
    *
    ERROR at line 1:
    ORA-00911: invalid character
    thanks,
    harish

  4. #4
    Join Date
    May 2001
    Posts
    736
    say ur abc.sql contains

    drop table test;
    create table test (age number);

    save the contents say it is in c:\test folder.Then go to SQL and type
    SQL>@c:\test\abc.sql;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width