1

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

1 Answer 1

2

You can use SHOW CREATE TABLE:

SHOW CREATE TABLE oldtable
Sign up to request clarification or add additional context in comments.

2 Comments

@P.Salmon it's hard to say. Just reading the question, you might be right, but the title definitely suggests this is the answer.
yeah, @Nick that's helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.