I have implement the SELECT multiple records and INSERT to another table in a stored procedure:
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
How to get the multiple LAST_INSERT_ID() in stored procedure?
Thanks in advance