1.create echo.sql script with content in the following text

点击(此处)折叠或打开

set echo on
select ename from emp where rownum <2;
set echo off --这后面的查询语句不会显示出来
select dname from dept where rownum <22.execute @/directory_path/echo.sql your can use pwd query directory or find / -name "file_name"