注意点: (1)进行拆分的总表表名是不同的.所以创建暂时表,把总表的数据先插入暂时表 (2)为了避免最外层游标轮询数据结束时,抛出 not found 退出程序,不会运行关闭游标等兴许操作,定义continue handler. declare continue handler for not found set done1=1; 1.1.外部存储过程调用主存储过程 CREATE PROCEDURE `bbs_split_thread_post_outer`(IN `in_tabname` va…