Simple trigger examples

Convert text to UPPER case when inserting/updating data

Create table

For example, we create a table, localitati, as follows:

Trigger la inserare

If it is created in phpMyAdmin, it could look like the figure below.

Trigger on update

Because neat work can be of real use in the field of computer science, as you can see, I rendered the two contents of the triggers arranged differently.

I have also restored the visual option for this trigger.

Author: Ovidiu.S

I am quite passionate about this professional area as if I know something - no matter how little - I want to share it with others.

Leave a Reply