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