mrsaywho Posted March 17, 2012 Share Posted March 17, 2012 how do i print out the code used to make my table.. you know some thing that looks like.... CREATE TABLE departments ( department_id INTEGER NOT NULL, name VARCHAR(100), chief_id INTEGER, parent_department_id INTEGER, PRIMARY KEY (department_id), UNIQUE (name), FOREIGN KEY(parent_department_id) REFERENCES departments (department_id) ) Quote Link to comment https://forums.phpfreaks.com/topic/259107-how-do-i-print-out-the-sql-i-used-to-create-my-table-in-phpmyadmin/ Share on other sites More sharing options...
Doug G Posted March 17, 2012 Share Posted March 17, 2012 If you use mysql, one easy way it to use mysql_workbench. You can right-click a table name in a database, choose create from the popup menu and see the create statement. Quote Link to comment https://forums.phpfreaks.com/topic/259107-how-do-i-print-out-the-sql-i-used-to-create-my-table-in-phpmyadmin/#findComment-1328569 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.