首页 > mysql: show tables like 'img_cxl_' 怎么通过 as 将获取到的表的字段修改成简单的?

mysql: show tables like 'img_cxl_' 怎么通过 as 将获取到的表的字段修改成简单的?

show tables like 'img_cxl';

查询后,获取结果如下:

怎么将字段名:Tables_in_guanyucun (%img_cxl_%) 这个字段名改成简单的?
例如:
像这样的: select count() from user; 本来结果集中的字段名应该是:count()
然后修改成: select count(*) as length from user; 结果集的字段名就成了: length
更加简便。

求解决,谢谢


SHOW的参数里没有这东西
http://dev.mysql.com/doc/refman/5.7/en/show-tables.html

【热门文章】
【热门文章】