Tip: Expanding a SQL statement

In all recent versions of the database you can call DBMS_UTILITY.EXPAND_SQL_TEXT to get the true version of a SQL that the database will run. It takes your SQL as input and returns a CLOB, which means its all a bit fiddly if you have a SQL statement already sitting in your SQLcl/SQLPlus buffer. Using a [ ]