ITPub博客

首页 > 数据库 > MySQL > 光标

光标

原创 MySQL 作者:starive 时间:2014-09-02 14:49:33 0 删除 编辑
mysql 光标的使用步骤:
1.光标的声明:declare cursor_name cursor for select_statement;
2 打开光标 : open cursor_name
3 遍历光标 : fetch cursor_name into v_name [,v_name] ...
4 关闭光标 : close cursor_name

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26435490/viewspace-1262120/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 存储过程
下一篇: 触发器
请登录后发表评论 登录
全部评论

注册时间:2014-01-18

  • 博文量
    143
  • 访问量
    530075