Version 20.4.0.379, Windows 10, 12c database.
If I have a worksheet up, and the following two queries in that worksheet...
SELECT 2 FROM DUAL;
SELECT 3 FROM DUAL;
...I can place my cursor on/within either line, and execute the corresponding query by pressing F9.
However, if the first query includes an inline function (WITH clause invoking a PL/SQL function), SQL Developer loses the distinction between queries when I try to F9 from within either.
WITH FUNCTION f (p_n IN NUMBER) RETURN NUMBER AS BEGIN RETURN (p_n * p_n); END f;
SELECT f(2) FROM dual;
SELECT 3 FROM dual;
Now when I place my cursor within either and press F9, I get ORA-00933: SQL command not properly ended.