只记录一个基本可用的用法
INSERT INTO `orchid_contract`.`contract_log` ( `contract_id`, `creator`) VALUES ( 515900, 515900);
set @last_id = LAST_INSERT_ID();
INSERT INTO `orchid_contract`.`contract_log` ( `contract_id`, `creator`) VALUES ( @last_id, 515900);
只记录一个基本可用的用法
INSERT INTO `orchid_contract`.`contract_log` ( `contract_id`, `creator`) VALUES ( 515900, 515900);
set @last_id = LAST_INSERT_ID();
INSERT INTO `orchid_contract`.`contract_log` ( `contract_id`, `creator`) VALUES ( @last_id, 515900);