SELECT
CONCAT(
'sqlstr=$(cat /chenenhui/',p.db,'/',p.name,'.sql)',
CHAR(10),
'`$mysql_dev -N -e " $sqlstr"`'
) ssss
FROM mysql.proc AS p
WHERE p.type LIKE '%PROCEDURE%' AND p.db IN ('AdAPI_Executor','BuyerCenterIS_Executor','BuyerCenter_Executor')
ORDER BY p.`created` DESC
SELECT * FROM mysql.proc p
WHERE p.db IN ('AdAPI_Executor','BuyerCenterIS_Executor','BuyerCenter_Executor')
AND p.`definer` != 'root@%'
UPDATE mysql.proc p
SET p.`definer` = 'root@%'
WHERE p.db IN ('AdAPI_Executor','BuyerCenterIS_Executor','BuyerCenter_Executor')
AND p.`definer` != 'root@%'
MSYQL批量执行一下.SQL
最新推荐文章于 2025-06-08 13:00:00 发布
本文详细介绍了如何使用SQL批量执行操作,包括查询、更新和批量定义数据库定义语句,针对特定数据库实例如AdAPI_Executor、BuyerCenterIS_Executor和BuyerCenter_Executor进行批量处理。
6192

被折叠的 条评论
为什么被折叠?



