SQLDeveloper: execute current line without highlighting

后端 未结 4 686
春和景丽
春和景丽 2021-02-13 20:42

In Toad one can easily execute current line without highlighting it. Let say, you have a worksheet like this:

select * from item -- cursor here


select * from p         


        
4条回答
  •  春和景丽
    2021-02-13 20:58

    If you have a block (anonymous or such) of code before your sql statement, make sure to end with forward slash, for the CTRL+enter to work.

    CTRL+Enter on the select sysdate statement below works in second example below, but not on the first example.

    Example 1:

    begin
    NULL;
    end;
    
    select sysdate from dual; -- press CTRL+Enter on this statement
    

    Example 2:

    begin
    NULL;
    end;
    /
    
    select sysdate from dual; -- press CTRL+Enter on this statement
    

提交回复
热议问题