Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k points)
edited by

Like INFORMATION_SCHEMA has all table names,comments etc. but where are the CREATE statements stored in MySql? Can I retrieve CREATE statements stored in one query for all tables?

1 Answer

0 votes
by (11.7k points)

mysqldump -h localhost -u root -p --no-data --compact  some_db

mysqldump -d --compact --compatible=mysql323 ${dbname}|egrep -v "(^SET|^/\*\!)"

If you want to get more insights into SQL, check out this SQL Course from Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 20, 2021 in SQL by RohitSingh (2.6k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...