create procedure repairChild(in uid int, in type_get char(6))
begin
declare userCusor cursor for select uid from by_users……
if uid = 0 then
……
else
……
end if;
end
我需要根据传进来的uid生成userCusor光标,可是mysql declare语句必须放在开头,有什么办法实现吗?
begin
declare userCusor cursor for select uid from by_users……
if uid = 0 then
……
else
……
end if;
end
我需要根据传进来的uid生成userCusor光标,可是mysql declare语句必须放在开头,有什么办法实现吗?
解决方案 »
- mysql,定时更新数据库记录
- 数据库排序问题查询
- 如何提高单机数据库的查询速度
- 如何用C\c++语言把文件 插入到blob类型.和取出来!!!
- 如何从 MySQL Database 中获得其中的 Table(s) 的相关信息: 如名称、结构等?
- 急,请问怎样才能把MySQL的一个表,导出为Foxpro的.dbf文件,而又不能把字符型字段的前导0丢失,用什么软件啊?
- 急寻InnoDB中文参考手册
- 刚刚安装完SQL,结果就不能访问。提示如下。
- 社交平台好友推荐系统设计(类似搜索引擎排名 求指导)
- 求助大佬们一个sql问题,让你问这个语法有什么问题,怎么解决
- mysql中文全文索引
- 请教mysql数据库同步
....
create table lsb as select * from by_users where id=uid
.....