Back to the sqlplus prompt

后端 未结 1 1214
日久生厌
日久生厌 2021-01-27 23:49

I\'m a beginner in PL/SQL, I\'m trying some sql script but sometimes I have an error in my script and the prompt doesn\'t appear; I remain in input mode.

How can I retri

相关标签:
1条回答
  • 2021-01-28 00:10

    From the documentation

    SQL*Plus treats PL/SQL subprograms in the same manner as SQL commands, except that a semicolon (;) or a blank line does not terminate and execute a block. Terminate PL/SQL subprograms by entering a period (.) by itself on a new line. You can also terminate and execute a PL/SQL subprogram by entering a slash (/) by itself on a new line.

    If you're entering a PL/SQL block and getting numbered prompts, enter a period (.) on its own and you'll drop back to the SQL> prompt.

    SQL> declare
      2
      3
      4
      5  .
    SQL>
    

    The code you entered will still be in the buffer and you can run it with /, or edit it in your configured text editor with edit. (You can set that with define _editor = "/usr/bin/vim", for example).

    0 讨论(0)
提交回复
热议问题