Home  >  Article  >  Database  >  How to set triggers with Navicat

How to set triggers with Navicat

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-13 14:09:099973browse

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!

Statement:
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
Previous article:Is navicat open source?Next article:Is navicat open source?