table_schema='foo'
(データベース名)の各テーブルからshow index
にします。エラーからinformation_schemaで不明なテーブル 'table_name'
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'は有効な構文ですか?それは受け入れられるものにも近くない。 –