SELECT b.target_host AS 'host',
a.target_ip AS 'Target',
a.monitor_type AS 'Type Monitor',
Concat (a.metric_name, "", a.metric_value) AS "metric name value"
FROM pm_sis_raw_metrics AS a
INNER JOIN pm_sis_hs_metrics AS b
ON a.id = b.id
WHERE metric_value > 80
AND ( metric_name = "utilization"
OR metric_name = "physical memory used %"
OR metric_name = "disk/file system/[c]/percent full"
OR metric_name = "% packets good" )
错误1052:列' metric_name' in where子句不明确
答案 0 :(得分:0)
你必须在where where中指定具有列名的表别名,如a.metric_name。