select name as '名字' from translate A,(show tables) B where A.coide=B.tables_in_qixia_gm功能类似上面,,但是貌似因为show tables是MYSQL的专有命令,使得我无法将表里面的字段和翻译表里面的数据一一匹配,请问该如何搞定?
show tables的确是mysql用户工具命令中的一个指令,不是SQL语句中的功能。不过你可以通过mySQL数据字典表information_schema.tables得到相关表信息SELECT table_name, table_type, engine FROM information_schema.tables
FROM information_schema.tables
http://dev.mysql.com/doc/refman/5.1/zh/information-schema.html#tables-table