mysql - CREATE table LIKE a JOIN -


select * t1 join t2 on t1.id1 = t2.id2 

yields join of tables on mysql. how can store result in third table without having define column column.

i tried create third table doesn't work.

create table t3 ( select * t1 join t2 on t1.id1 = t2.id2 ) 

if want new table contain results of select:

create table t3 select * t1 join t2 on t1.id1 = t2.id2 

or if want based on schema of join:

create table t3 select * t1 join t2 on t1.id1 = t2.id2 false 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -