Home     Blog

Database Trigger

A database trigger is a procedural code that automatically changes information in one or more databases in response to a change on another database or table. For example, when an employer creates a slot in a list of employees for a new employee, the database trigger in that list should automatically add the new employee to lists for vacations, sick days, salaries, and/or other information. Database triggers prevent computer administrators from having to manually add new information to multiple tables, charts, or databases.

 

How Database Triggers Work

A database trigger can be any type of code that is embedded in a table, chart, database, or other work area and serves to automatically make changes to another work area in response to changes. Database triggers are generally written in the Database Manipulation Language, or DML, and can be implemented on a wide variety of platforms, including Oracle, Microsoft SQL Server, PostgreSQL, Firebird, MySQL, IBM DB2 LUW, SQLite, and XML databases.

 

Applications

Database triggers can be used to modify data in one database in response to changes in another database. In addition to copying information from one work area to another, a database trigger may also be used to log information whenever a change is made, such as the name of the person who changed it and the time the information was altered.

 

Advantages

Database triggers are advantageous because they can be implemented in a document without being seen by the user and prevent the user from having to enter the same information more than once. Database triggers are also helpful for recording information about a system or the users who access it and can aid in preventing unauthorized users from altering information.

 Database Trigger

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
Follow Will.Spencer on

Leave a Reply

Related Posts

  • What is a Database?

    One of the technology terms that most people have become accustomed to hearing either at work or while surfing the Internet is the database. The database used to be an extremely technical term, however with the rise of computer systems and information technology throughout our culture, the database has become a household term. A database [...]...


  • Relational Database

    A relational database stores data in separate tables instead of placing all data in one large table. It then allows Data Base Administrators (DBAs) to define relationships between these tables. These relationships enable DBAs to combine data from several tables for querying and reporting. This is accomplished through the use of keys, which are database [...]...


  • Database Replication

    Database replication is the creation and maintenance of multiple copies of the same database. In most implementations of database replication, one database server maintains the master copy of the database and additional database servers maintain slave copies of the database. Database writes are sent to the master database server and are then replicated by the [...]...


  • Free Database Software

    MySQL The MySQL database server is the world’s most popular open source database server. Over six million installations use the MySQL database server to power high volume websites and other mission critical business systems including industry leaders like NASA, Yahoo, The Associated Press (AP), Suzuki, and Sabre Holdings. MySQL is an attractive alternative to high [...]...


  • Multimedia Database

    A multimedia database is a database that hosts one or more primary media file types such as .txt (documents), .jpg (images), .swf (videos), .mp3 (audio), etc. And loosely fall into three main categories: Static media (time-independent, i.e. images and handwriting) Dynamic media (time-dependent, i.e. video and sound bytes) Dimensional media (i.e. 3D games or computer-aided [...]...