关于触发器的,能同时更新登陆表和注册表的触发器
各位可以为这个两个表创建触发器吗,就是更新用户表时也同时更新登陆表:create table login
(
loginID varchar(20) primary key,
loginUserName varchar(20) null unique,
loginPwd varchar(20) null
)
create table register
(
loginID varchar(20) foreign key references login(loginID),
userName varchar(20) primary key,
userTrueName varchar(20),
userPwd varchar(15),
userGender varchar(2),
userBirthDate varchar(20),
userProvince varchar(10),
userCity varchar(10),
userEmail varchar(30),
userRegisterDate datetime
)