以下的SQL  语句就是两张表的连接:

select * from 表1名  inner join 表2名 on  主键 = 外键

 

代码:

select * from user  inner join content on  user.id = content.id

posted on 2014-05-06 17:23  kleer  阅读(302)  评论(0编辑  收藏  举报