You can correct input when you make an error when typing a Transact-SQL command.
Press Ctrl-c or type the word “reset” on a line by itself – this clears the query buffer and returns the isql prompt.
Type the name of your text editor on a line by itself – this opens a text file where you can edit the query. When you write and save the file, you are returned to isql and the corrected query appears. Type “go” to execute it.