Home > Database > navicat > How to write triggers in navicat

How to write triggers in navicat

爱喝马黛茶的安东尼
Release: 2019-08-05 16:11:27
Original
5484 people have browsed it

How to write triggers in navicat

Open Navicat.

How to write triggers in navicat

Open the database where the data table is located, right-click the database table where you want to add fields, and then click "Design Table".

How to write triggers in navicat

Now enter the table design interface.

How to write triggers in navicat

Related recommendations: "Navicat for mysql graphic tutorial"

Click the "Trigger" tab and enter the trigger Name, such as trigger1.

How to write triggers in navicat

Select the trigger condition, before or after.

How to write triggers in navicat

#Select which table operation events are triggered, optional insert, update and delete.

How to write triggers in navicat

In the "Definition" below, enter the sql statement to be executed when triggered, such as insert into oldtable(code) values(newtable.code), and then click "Save". You're done creating the trigger.

How to write triggers in navicat

The above is the detailed content of How to write triggers in navicat. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template