赞
踩
-- 设置预处理update语句 SET @UpdateSql = 'UPDATE user set userName=? ,age=? where id=? -- 编译预处理语句 PREPARE stmt FROM @UpdateSql; -- 设置预处理语句相关参数和条件 SET @stmtUserName='小张',@stmtAge='28',@stmtId=13; -- 执行预处理update EXECUTE stmt USING @stmtUserName,@stmtAge,@stmtId; |
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。