--- edit

SQL keeps the last query statement you typed in a buffer, so
   you can: 
	edit it to correct mistakes, 
	save it in a file for later execution, or
	read in an entirely new query.

To edit the current query buffer, simply type `edit' in response
   to the SQL prompt.

	     sql> edit


The standard Berkeley editor "vi" is normally used.

When you exit from the editor, you can execute the query in the buffer
  by typing `restart'.

	     sql>  restart
