SHOW TABLE STATUS & the nested SELECT statement

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry

    #1

    SHOW TABLE STATUS & the nested SELECT statement

    The "SHOW TABLE STATUS" command seems to return a result set, just
    like "SELECT * FROM SomeTable".

    Therefore, since the following is valid:

    SELECT * FROM (SELECT * FROM SomeTable)

    I inferred that this functionality would extend to the SHOW statement:

    SELECT * FROM (SHOW TABLE STATUS FROM SomeDataBase)

    But such a command gives an invalid syntax error.

    I want to query the data_length from a few tables, place those values
    into temp variables and then run a second SQL command using those
    values. Is what I'm trying to do possible?

    Billy Billerson

Working...