imrvasishtha
imrvasishtha

Reputation: 99

How to view table structure sql query?

I want to make a new table like as an existing table in MySQL database with some "column name" changes. So, is there any way to see the SQL dump of the existing table without importing?

enter image description here

Upvotes: 1

Views: 1361

Answers (1)

Nick
Nick

Reputation: 147196

You can use SHOW CREATE TABLE:

SHOW CREATE TABLE oldtable

Upvotes: 2

Related Questions