我想用 MySQL 例程做这样的事情
PROCEDURE `abc`(t1 varchar(50), t2 varchar(50))
BEGIN
DECLARE myCursor CURSOR FOR
SELECT * FROM t2
CREATE TABLE t2 SELECT * FROM t1;
OPEN...FETCH...CLOSE CURSOR
END
知道怎么做吗?
谢谢
我想用 MySQL 例程做这样的事情
PROCEDURE `abc`(t1 varchar(50), t2 varchar(50))
BEGIN
DECLARE myCursor CURSOR FOR
SELECT * FROM t2
CREATE TABLE t2 SELECT * FROM t1;
OPEN...FETCH...CLOSE CURSOR
END
知道怎么做吗?
谢谢