开发者

phpMyAdmin and SHOW CREATE TABLE

开发者 https://www.devze.com 2023-01-04 02:12 出处:网络
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)?

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 quer开发者_如何学编程y multiple SHOW CREATE TABLEs simultaneously in phpMyAdmin? If I separate them, only the last one appears.


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.


It sounds like what you want is all/part of the result of the 'export' tab.

If you tell it to export in sql, it gives you the table creation and popluation code (for all tables in the database)


Click the database > Select the tables you want > Choose With selected: Show create > done

Screenshots:

phpMyAdmin and SHOW CREATE TABLE

phpMyAdmin and SHOW CREATE TABLE

phpMyAdmin and SHOW CREATE TABLE

0

精彩评论

暂无评论...
验证码 换一张
取 消