sql - MySQL: Return table names without using any of "show tables from database_name" or "select table_name from information_schema.tables" queries -


i trying return table names without using "show tables database_name" or "select table_name information_schema.tables" queries reason of that:

  1. i can't use "show tables database_name" query because returns row set of table names fixed field name "tables_database_name" , not acceptable in code when database name long -i using dbexpress on delphi , column name can't longer 31 character-.

  2. i can't use "select table_name information_schema.tables" query because not supported old mysql think older 5.1

please if body knows :

  • how change resulted fixed column name of "show tables database_name".

or

  • any other query returns table names inside specific database.

how change resulted fixed column name of "show tables database_name".

seems show tables separate statement fixed syntax:

show [full] tables [{from | in} db_name] [like 'pattern' | expr] 

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

it not select can not union or juggle in form (change column names) guess answer quesiotn is: impossible.

any other query returns table names inside specific database.

if compare this: http://dev.mysql.com/doc/refman/4.1/en/show-tables.html

to this: http://dev.mysql.com/doc/refman/5.0/en/show-tables.html

it seems alternative show tables prior 5.0 "mysqlshow" shell command

information_schema introduced in mysql 5.0 , stable 8 years ago. guess trying make software compatible old versions.


what "dbexpress" when column names longer 31 chars? truncate or fails? maybe should state question tagged "delphi" , "dbexpress" , ask how bypass limitation?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -