摘要:
首先,我们来把场景描绘一下,比如下面的例子(当然是无法正确运行的):CREATE PROCEDURE `proc`(SourceDBName CHAR(50), SourceTableName CHAR(50), TargetDBName CHAR(50), TargetTemplateTableName CHAR(50))BEGIN DECLARE done INT DEFAULT 0; DECLARE FieldValue CHAR(50); DECLARE CursorSegment CURSOR FOR SELECT ... FROM SourceDBName.SourceT... 阅读全文