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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:34:20
Original
1214 people have browsed it

mysqlcursor

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

<code>            求大神指导!!!!!!!!!!!</code>
Copy after login
Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template