业务需要,写一个触发器
在tab_user_detail表增加一条数据后,往tab_user表增加一条记录
create trigger tri_user_insert
after insert on tab_user_detail
for each row
begin
insert into tab_user (USER_ID,USER_NAME,USER_PWD,USER_CUSTOMERNAME,USER_PHOTOS) values (:new.MY_USERID,'username','password','truename','Default.jpg');
end;