select语句多表查询 怎么查询啊
2个回答
展开全部
select * from Table1,Table2 where Table1.c=Table2.c(c是某一相同字段)
或者用内链接或者外联结:
selete * from Table1 as T1
inner join Table2 as T2
on T1.c=T2.c
外联接
selete * from Table1 as T1
left (right) join Table2 as T2
on T1.c=T2.c
或者用内链接或者外联结:
selete * from Table1 as T1
inner join Table2 as T2
on T1.c=T2.c
外联接
selete * from Table1 as T1
left (right) join Table2 as T2
on T1.c=T2.c
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询