php - How to create Table Dynamically with existing table fields in mysql -


currently i'm using table sample1. how can create table sample2 sample1's field dynamically?

you can way.

create table `sample2` select * `sample1`; 

another alternative is

if table structure same can use:

insert `sample2` select * `sample1`; 

Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -