请教个SQL语法

[复制链接]
查看11 | 回复2 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
select a,

b

select c from tableb where tableb.a=tablea.a
from table a
;

select c from tableb where tableb.a=tablea.a
这么写怎么不行呢?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
select a,
b
(select c from tableb where tableb.a=tablea.a) c
from table a
;
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
select a.a,a.b,b.c
from tablea as a,tableb as b
where a.a=b.a
;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行