发布网友 发布时间:2022-04-26 14:18
共4个回答
懂视网 时间:2022-04-30 03:08
DELIMITER // mysql> CREATE PROCEDURE processorders() -> BEGIN -> -- Declare the cursor -> DECLARE ordernumbers CURSOR -> FOR -> SELECT order_num FROM orders; -> -> -- Open the cursor -> OPEN ordernumbers; -> -> -- Close the cursor -> CLOSE ordernumbers; -> END// Query OK, 0 rows affected (0.00 sec) mysql> DELIMITER ; mysql> CALL processorders(); Query OK, 0 rows affected (0.01 sec)
MySQL.CURSOR
标签:
热心网友 时间:2022-04-30 00:16
游标,用来遍历MYSQL内存查询集合。热心网友 时间:2022-04-30 01:34
游标参考资料:http://hi.baidu.com/wangqing999/blog/item/9e47442e57a2a794023bf671.html
热心网友 时间:2022-04-30 03:09
用于游标声明中: