在MySQL的触发器中,Trigger_Time主要有哪两种?
A: before
B: insert
C: after
D: delete
A: before
B: insert
C: after
D: delete
举一反三
- 在MySQL的触发器中,Trigger_Time主要有那两个种( ) A: Before B: Insert C: After D: Delete
- 下面的代码用于创建一个在删除数据前触发的触发器,横线上所缺代码为( )。 DELIMITER // CREATE DEFINER=`root`@`localhost` TRIGGER ____________________ ON tb_bookinfo FOR EACH ROW INSERT INTO tb_booklog (event,logtime) values('删除了一条图书信息',now()); A: BEFORE DELETE B: AFTER DELETE C: BEFORE INSERT D: AFTER INSERT
- 创建触发器时,trigger_time取值为()。 A: BEFORT或AFTER B: INSERT C: UPDATE D: DELETE
- 在MySQL中创建触发器时,不能使用( )触发事件。 A: INSERT B: CREATE C: UPDATE D: DELETE
- 下列新增一个DELETE触发器语句正确的是()。 A: CREATE TRIGGER deleteorder BEFORE DELETE ON orders FOR EACH ROW B: CREATE TRIGGER deleteorder BEFORE INSERT ON orders FOR EACH ROW C: CREATE TRIGGER deleteorder BEFORE DROP ON orders FOR EACH ROW D: CREATE TRIGGER deleteorder BEFORE UPDATE ON orders FOR EACH ROW