jianggege 发表于 2013-1-14 08:52:06

java面试中oracle几种查询(经典)

一、内连接和外连接
   内连接用于返回满足连接条件的记录;而外连接则是内连接的扩展,它不仅会满足连接条件的记录,而且还会返回不满足连接条件的记录,语法如下: 
 
Oracle代码  
<div style="border-bottom: medium none; border-left: #6ce26c 2.25pt solid; background: #f8f8f8; margin-left: 12.55pt; border-top: medium none; margin-right: 0cm; border-right: medium none; padding: 0cm;">1.   select table1.column,table2.column from table1 join table2 on table1.column=table2.column;  
页: [1]
查看完整版本: java面试中oracle几种查询(经典)