呵呵,oracle 和access是大不一样的,oracle 为了维护数据完整性,有许多在access数据库,和sqlserver中看起来比较顺手的东西都没有。用我以前一位老师的话来讲:oracle不惜一切工本来保证数据的完整性,他们的目的就是做到最大限度的数据安全(说到此处他情不自禁的脱口而出:这就是oracle的牛x之处!)。
至于你说的这个问题我想大概可以(我没有见到具体实例)通过著名的表连接的方式(相信你会写pl/sql代码块)来解决。我有几个练习希望对你有用....(仅供参考)
select flight.flightno,flight_date,airbusno,deprt_time from flight,flight_serch
where flight.flight.no=flight_sch.flightno; 等连接!select fare.route_code,fare.route_desc,flight.flightno,flight.flight_date,airbusno
deprt_time
from fare,flight_sch,flight
where flight_sch.flightno=flight.flightno
and fare.route_code=flight_sch.route_code; 三表连接 select x.route_code,x.first_fare,y.first_fare
from fare x,fare y
where x.first_fare=y.first_fare
and y.route_code='san-lou'; (注意表别名) 自连接 表连接时注意,必须建立别名,否则会造成dbms对列寻找的混乱
select airbus.airbus_no,first_cap,bus_cap,eco_cap,flightno,deprt_time
from airbus,flight_sch
where airbus.airbusno=flight_sch.airbus 外表的连接
(+)的使用是因为在等连接中,他不会选择不通用得值,所以在需要他列时就要用到该符号。
至于你说的这个问题我想大概可以(我没有见到具体实例)通过著名的表连接的方式(相信你会写pl/sql代码块)来解决。我有几个练习希望对你有用....(仅供参考)
select flight.flightno,flight_date,airbusno,deprt_time from flight,flight_serch
where flight.flight.no=flight_sch.flightno; 等连接!select fare.route_code,fare.route_desc,flight.flightno,flight.flight_date,airbusno
deprt_time
from fare,flight_sch,flight
where flight_sch.flightno=flight.flightno
and fare.route_code=flight_sch.route_code; 三表连接 select x.route_code,x.first_fare,y.first_fare
from fare x,fare y
where x.first_fare=y.first_fare
and y.route_code='san-lou'; (注意表别名) 自连接 表连接时注意,必须建立别名,否则会造成dbms对列寻找的混乱
select airbus.airbus_no,first_cap,bus_cap,eco_cap,flightno,deprt_time
from airbus,flight_sch
where airbus.airbusno=flight_sch.airbus 外表的连接
(+)的使用是因为在等连接中,他不会选择不通用得值,所以在需要他列时就要用到该符号。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货