php - Mysql - How to Give Alias name for column -


i getting list of tables matches query string database.

my query

show tables '%fit%' 

output

tables_in_pdi (%fit%)

fit_types 

in php while fetching these , getting output as

array ( [tables_in_pdi (%fit%)] => fit_types ) 

if there anyway give alias these , easy me take data in php

it easier use information_schema database:

http://dev.mysql.com/doc/refman/5.0/en/tables-table.html

select table_name information_schema.tables   table_schema = 'db_name'   , table_name '%fit%' 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -