标签:tables ike property var mysql sele sql 批量 拼接
select concat(‘grant all on ‘, table_schema,".",table_name," to ‘ gxsnerp‘@‘localhost ‘;") from tables where table_schema=‘gxsnerp‘ and table_name like ‘ACT%‘;
生成拼接语句如下:
grant all on gxsnerp.ACT_HI_VARINST` to ‘gxsnerp‘@‘localhost‘;
grant all on gxsnerp.ACT_GE_PROPERTY to ‘gxsnerp‘@‘localhost‘;
grant all on gxsnerp.ACT_ID_MEMBERSHIP to ‘gxsnerp‘@‘localhost‘ ;
grant all on gxsnerp.ACT_HI_ACTINST to ‘gxsnerp‘@‘localhost‘ ;
标签:tables ike property var mysql sele sql 批量 拼接
原文地址:http://blog.51cto.com/13504089/2058994