Home > Database > navicat > body text

How to set triggers with Navicat

爱喝马黛茶的安东尼
Release: 2019-08-13 14:09:09
Original
10016 people have browsed it

How to set triggers with Navicat

Open Navicat.

How to set triggers with 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 set triggers with Navicat

Related recommendations: "Navicat for mysql graphic tutorial"

Enter the table design interface at this time.

How to set triggers with Navicat

Click the [Trigger] tab and enter the trigger name, such as trigger1.

How to set triggers with Navicat

Select the trigger condition, before or after.

How to set triggers with Navicat

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

How to set triggers with 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 set triggers with Navicat

The above is the detailed content of How to set triggers with 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!