用于分析SQL语句的执行效率,官方文档
-- analyze: 运行命令,并展示实际运行时间及其他统计信息
-- buffers: 缓存的使用状态
-- format yaml: 以 yaml 格式输出
explain (analyze, buffers, format yaml) select * from tsa_mp_report_adgroup_hourly order by account_id;
怎样看懂命令用法(command synopsis),一般使用 BNF 进行描述,Linux系统中man手册中的command synopsis一般也是用类似的语法来描述命令的使用。