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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -