Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 720 Bytes

Console-Command-Load-Script.md

File metadata and controls

32 lines (20 loc) · 720 Bytes
search
keywords
console
command
load
record
LOAD SCRIPT

Console - LOAD SCRIPT (from 2.2.18)

Loads a sql script from the given path and executes it.

Syntax

LOAD SCRIPT <script path>

Example

  • Load a script from an absolute path:

    orientdb> LOAD SCRIPT /path/to/scripts/data.osql
    
    
  • Launch the console in batch mode and load script to a remote database:

    $ $ORIENTDB_HOME/bin/console.sh "CONNECT REMOTE:localhost/demo;LOAD SCRIPT /path/to/scripts/data.osql"
    

For more information on other commands, see Console Commands.