mysql - inner join with 2 primary keys -


ending id meaning primary key do when table 4 uses 2 primary keys? display content2, content3, , content1 in 1 select statement

create table table1 (table1id   char(4),  content1   varchar,  create table table2 (table2id   char(4),  content2   varchar,  create table tablet3 (table3id   char(4),  content3   varchar,  table2id    char(4),  create table tablet4 (table1id   char(4),  table3id   char(4), 

if understand correctly:

 select content1        ,content2        ,content3             table1 t1       inner join table4 t4 on t1.table1id = t4.table1id       inner join table3 t3 on t4.table3id = t3.table3id       inner join table2 t2 on t3.table2id = t2.table2id 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -