56,678
社区成员
发帖
与我相关
我的任务
分享
set @sqlrun := v_sql;
prepare stmt from @sqlrun;
execute stmt;
-- 创建临时表tempTable1
CREATE TEMPORARY TABLE IF NOT EXISTS tempTable1 select * from sys_user;
-- 查询临时表
select * from tempTable1;
-- 查询临时表
select * from tempTable1 where UserID=3;
-- 删除临时表tempTable1
drop TEMPORARY TABLE tempTable1;