ORA-00911: invalid character Toad

前端 未结 2 1535
攒了一身酷
攒了一身酷 2021-01-14 06:41

I am using Toad 11.5

when I run multiple truncate statement, it gives an error ORA-00911: invalid character

truncate table employees         


        
2条回答
  •  被撕碎了的回忆
    2021-01-14 07:23

    When you run it as a statement (F9) you can't have multiple statements, and the semicolons are meaningless - as they are statement separators. (You get the same error with a semicolon in an execute immediate or JDBC call, for example, as they only support a single statement).

    If you run as a script (F5) instead then those separators do have meaning, and the multiple statements that they, er, separate will be executed in sequence.

提交回复
热议问题