Database Operation¶
Executing SQL¶
Click ” System Manager ” → “Database operation”.
“Database operation” screen is displayed.
- Database connection
Selected from registered “Shared database” or “Tenant database”.
Click “Execute”.
SQL is executed.
Note
Refer “System management” - “Shared database settings” for the shared database settings.
Note
- Referring the execution history
- The last 10 executed SQL statements are stored in the execution history and on selecting the date from the combo box, the respective SQL is displayed.
Executing SQL by importing SQL file¶
Click ” System Manager ” → “Database operation”.
Click “Import SQL file”.
“Database operation” screen will be displayed.
- Connection destination
Selected from registered “Shared database” or “Tenant database”.
- SQL file
Click on “Select file” and then select the file from “File selection dialog” screen.
- Transaction unit
- SQL statement
Set SQL statement for each transaction.Every time the SQL statement is executed, commit and rollback can be carried out.Even if there is an error during the execution, all the SQL statements will be executed.
- Batch
Transactions are set in batch.Once all the SQL statements defined in the file are executed, commit is performed.If there is an error during the process, roll back is performed and the process is terminated.※However, the behavior of the transaction when DDL statement is executed depends on the database.Click “Import”.
Click “Confirm”.
SQL file is imported and executed.
Warning
In the SQL file, every SQL statement should be delimited by “semi colon (;)+ linefeed”.
Character code of the file to be imported should be the same as the character code of storage space.If the character code is different, it may result in garbling of characters.