phpMyAdmin and SHOW CREATE TABLE

waiwai933 picture waiwai933 · Jun 22, 2010 · Viewed 19k times · Source

Is there a shortcut in phpMyAdmin to SHOW CREATE TABLE for a table (i.e. a button I can click to get the full query, not the truncated one)?

Also, can I query multiple SHOW CREATE TABLEs simultaneously in phpMyAdmin? If I separate them, only the last one appears.

Answer

Mohd Abdul Mujib picture Mohd Abdul Mujib · Jan 1, 2016

If you are trying to export the Table Schema Using the SHOW CREATE TABLE Query Inside phpmyadmin, and are getting some truncated SQL then please follow the following steps to output the complete SQL Query to replicate the table structure.

  • There is this Hyperlink named +Options right above the truncated SQL that you are getting, Clicking on which shall make make a few toggles/options appear.
  • There select Full Texts, And right below this toggle there is this Go button, maybe on the extreme right.
  • And You should get the Full Text of the SQL.