|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello,
Is there a script out there that can read the table schemas in a database and generate the ddl statements (create table ...)?? Thanks. |
|
#2
|
|||
|
|||
|
Check out mysqldump (included in your mysql distribution). It dumps a db into a text file with the table create statements and inserts to recreate a table. Check mysqldump help to see if you can have it only dump the table create statements (I think you can) if not, it shouldn't be too big of a hassle to strip out the inserts.
|
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Script for generating ddl's |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|