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
Post a Comment