Do one of the following: Select View > Previous SQL. Press F7. The new SQL replaces what was previously in the Query window.