table_schema='foo'
(데이터베이스 이름)이있는 각 테이블의 show index
이 필요합니다. 오류에서 알 수없는 테이블 'table_name'in information_schema
mysql> show index from table_name from information_schema.tables where table_schema='foo';
ERROR 1109 (42S02): Unknown table 'table_name' in information_schema
, 나는 쿼리가
information_schema
의 테이블로
'table_name'
취급 것을 알 수있다.
'table_name'
을 열로 처리하도록 쿼리를 다시 작성하면
information_schema.tables
에 있습니까?
나는 이것이 당신이 찾고있는 것이라고 믿는다 : http://stackoverflow.com/questions/5213339/how-to-see-indexes-for-a-database-or-table – commanderZiltoid
왜 당신은 ' from table_name from'은 유효한 구문입니까? 그것은 받아 들일 수있는 것에는 가깝지 않습니다. –