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
Post a Comment