Home>Article>Database> How to create a trigger in navicat

How to create a trigger in navicat

(*-*)浩
(*-*)浩 Original
2019-08-14 09:19:35 12147browse

The following describes how to use Navicat to create triggers for database tables.

How to create a trigger in navicat

Open Navicat(Recommended tutorial:navicat tutorial)

How to create a trigger in navicatOpen data In the database where the table is located, right-click the database table where you want to add fields, and then click [Design Table]

How to create a trigger in navicatNow enter the table design interface

How to create a trigger in navicatClick the [Trigger] tab and enter the trigger name, such as trigger1

How to create a trigger in navicat##Select the trigger condition, before or after

How to create a trigger in navicat

Select which table operation events are triggered, you can check insert, update and delete

How to create a trigger in navicat

In the [Definition] below, enter the SQL statement to be executed when the trigger is triggered, such as insert into oldtable(code) values(newtable.code), and then click [Save] to create the trigger.

How to create a trigger in navicat

The above is the detailed content of How to create a trigger in 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