i have a requirement where i want to save or spool my last run SQl command in a txt file .
for Example:
i run first command : INSERT INTO ABC VALUES ('A');
now when i run second command : UPDATE ABC SET TYPE='B';
i want to save/spool my last SQl command (insert statement)
in a txt file or anywhere else.

so is there any SQL script for that.
pls help me out