1

I have a sql script as follows. What does the symbol '/' at the end of this script do?

@create_file.sql;
@check_status.sql;
@update_status.sql;

/
show errors;
Steephen
  • 14,645
  • 7
  • 40
  • 47
  • I know nothing about Oracle but my guess is that it's the equivalent of MSSQLs GO statement which executes the preceding t-sql as a batch then anything until the next GO or end of script as the next batch...am I close? – Charleh Apr 10 '15 at 19:11
  • 1
    I'd add on Gergo's answer below. / slash also re-execute the previous command. – Mussa Apr 10 '15 at 21:36

1 Answers1

3

From the documentation:

Executes the most recently executed SQL command or PL/SQL block which is stored in the SQL buffer.

The buffer has no command history and does not record SQL*Plus commands.

Gergo Erdosi
  • 40,904
  • 21
  • 118
  • 94