If you enter a long command in multiple line mode (Page 7), you can make changes to this command at a later stage by editing the command buffer (Page 8) in an external file.
You have already entered a multiple line command in multiple line mode.
...
1. To load the contents of the command buffer to an external file, enter the following command:
\e [<file>]
¡ Enter the complete file path and name <file>.
¡ If you do not specify a file, SQLCLI generates a temporary file.
The file is opened using the editor. To determine which editor is to be used, SQLCLI evaluates the environment variables SQLCLI_EDITOR, EDITOR, and VISUAL one after the other. If none of these environment variables is set, the Notepad editor is used in Windows and the vi editor in Linux/Unix. For information about setting environment variables, see the relevant documentation for your operating system.
2. Make the desired changes in the file.
3. Save the file in the editor and close the file and editor.
The contents of the command buffer have been changed. You can now enter the command \g to execute the changed command.