Why in the Firebird database everything I do, including create tables, is necessary at the end of the script to give a command COMMIT
?
Why in the Firebird database everything I do, including create tables, is necessary at the end of the script to give a command COMMIT
?
Answer:
The COMMIT
command at the end of the script ensures that all statements placed above it will run after executing this command. Using this command can prevent data inconsistency if any commands in the middle of the script fail.
Firebird is a transactional database. It means that everything runs within a transaction .
Commit
confirms changes made in the context of a transaction.
RollBack
does the reverse, undoing changes in the context of a transaction.