Home >Database >Mysql Tutorial >cursor-mysql 游标问题(结果集)

cursor-mysql 游标问题(结果集)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:34:201212browse

mysqlcursor

mysql:
declare cur cursor for select * from 表名;
open cur;
Loop1:loop;
....
fetch cur into 变量
...
update 表2 set id =变量.id,name=变量.name.....
有这样的变量吗 ,没有 我该怎么实现 把查询出来的对象 赋值给一个变量,

<code>            求大神指导!!!!!!!!!!!</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn