SELECT 'GRANT SELECT ON'
|| tname || 'to username;' from tab;
Grant Select on dev.t_chaxunmk to taobo;
CREATE PUBLIC SYNONYM T_CHAXUNMK for DEV.T_CHAXUNMK;
SELECT 'CREATE SYNONYM
'|| TNAME ||' for username. '|| TNAME ||'; 'from Tab;
SELECT * from T_Chaxunmk1