我已经将SELECT多条记录和INSERT实现到存储过程中的另一个表:
CREATE DEFINER=`root`@`localhost` PROCEDURE `publish`(IN `userid` MEDIUMINT)
NO SQL
BEGIN
INSERT INTO `master_live`
(
`Title`
)
SELECT
`Title`
FROM `breakingnewsmaster` WHERE user_id= userid;
END
如何在存储过程中获取多个LAST_INSERT_ID()?
提前致谢