SELECT GROUP_CONCAT(COLUMN_NAME) AS fields FROM INFORMATION_SCHEMA.Columns WHERE table_name = 'mytable' AND table_schema = 'test';
select trigger_schema, trigger_name, action_statement from information_schema.triggers select * from information_schema.triggers where information_schema.triggers.trigger_schema like '%test%'; select * from information_schema.triggers where information_schema.triggers.trigger_name like '%trigger_name%' and information_schema.triggers.trigger_schema like '%data_base_name%';
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。