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

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -