多表查询的问题 注:表A的TARGETSTOCKID和SOURCESTOCKID是表B的ID的外键 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select b.name as ARGETSTOCKNAME , c.name as SOURCESTOCKNAMEfrom 表A a , 表b b , 表b c where a.targetstockid = b.id and a.sourcestockid = c.id select b.name targetstockname, c.name sourcestockname from tablea a, tableb b, tableb c where a.targetstockid=b.id and a.sourcestockid=c.id select t.name TARGETSTOCKNAME,s.name SOURCESTOCKNAME from table_a d,table_b t,table_b s where d.targetstockid=t.id and d.sourcestockid=c.id; instr函数,decode函数杂用? 请教创建oracle数据库id主键自动递增的写法 oracle请帮忙看看这么个需求sql语句该怎么写 求助Oracle问题 oracle8.05 数据库回复问题 Oracle 8.05 如何与SQL Server相连? oracle9i安装完后默认的连接数据库的用户名和密码是什么啊? 一个简单问题请教,关于自动增加字段 在SQLPlus中,如何给出提示性语句? 数据库端及客户端配置问题!请高手指教~ 求一sqlload中控制文件内容,请近来看看! 存储???
from 表A a , 表b b , 表b c
where a.targetstockid = b.id and a.sourcestockid = c.id
b.name targetstockname,
c.name sourcestockname
from
tablea a,
tableb b,
tableb c
where
a.targetstockid=b.id
and a.sourcestockid=c.id
from table_a d,table_b t,table_b s
where d.targetstockid=t.id and d.sourcestockid=c.id;