Home > Database > Mysql Tutorial > mysql数据库建立触发器,做历史记录查询

mysql数据库建立触发器,做历史记录查询

WBOY
Release: 2016-06-06 09:33:32
Original
1234 people have browsed it

mysql触发器

大家好,我现在想做历史查询,把历史的记录保存然后做历史查询,要建立一个历史变,然后在原表上加入触发器,请问触发器语句怎么写,我是要将原表的所有字段,不管是修改还是没修改的的记录都存入历史变,因为要做历史查询,请问历史表的字段怎么设置,建立触发器,怎么写定义语句,我用的是navicat,说的具体点,新手学习,好多不懂,如果能加个qq咨询就更好了……

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