主库执行 ? 1 2 3 4 5 CREATE DATABASE test CHARACTER SET utf8 COLLATE utf8_general_ci; use test; create table if not exists h1 (id int (10) PRIMARY KEY AUTO_INCREMENT, name varch
sql语句: DROP TRIGGERIFEXISTS sys_menu_edit;CREATE TRIGGER sys_menu_edit BEFORE UPDATE ON sys_menu FOR EACH ROWBEGININSERT INTO `g4m`.`sys_log` ( `table_name`, `val_id`, `data_j
首先创建一张实验用的一张表 drop table if exists t_student; create table t_student( id int primary key auto_increment, name varchar(20) not null comment 姓名, birthday