?? oracle sql性能優(yōu)化系列 (一)1--acnow_net.htm
字號:
<DIV id=article>
<TABLE cellSpacing=0 cellPadding=0 width=540 border=0 style="TABLE-LAYOUT: fixed">
<TBODY>
<TR>
<TH class=f24><FONT color=#05006c>
<H1>ORACLE SQL性能優(yōu)化系列 (一)</H1>
</FONT></TH>
</TR>
<TR>
<TD> <HR SIZE=1 bgcolor="#d9d9d9"> </TD>
</TR>
<TR>
<TD align=middle height=20>http://Tech.acnow.net 2005-4-29 <FONT color=#a20010>網絡</FONT></TD>
</TR>
<TR>
<TD height=15></TD>
</TR>
<TR>
<TD class=l17><FONT class=f14 id=zoom><BR><BR> <BR><BR> <BR><BR>B. 兩個語句所指的對象必須完全相同:<BR><BR>例如:<BR><BR> 用戶 對象名 如何訪問<BR><BR>Jack sal_limit private synonym<BR><BR> Work_city public synonym<BR><BR> Plant_detail public synonym<BR><BR> <BR><BR>Jill sal_limit private synonym<BR><BR> Work_city public synonym<BR><BR> Plant_detail table owner<BR><BR> <BR><BR> 考慮一下下列SQL語句能否在這兩個用戶之間共享.<BR><BR> <BR><BR> <BR><BR>SQL<BR><BR>能否共享<BR><BR>原因<BR><BR>select max(sal_cap) from sal_limit;<BR><BR>不能<BR><BR>每個用戶都有一個private synonym - sal_limit , 它們是不同的對象<BR><BR>select count(*0 from work_city where sdesc like 'NEW%';<BR><BR>能<BR><BR>兩個用戶訪問相同的對象public synonym - work_city <BR><BR>select a.sdesc,b.location from work_city a , plant_detail b where a.city_id = b.city_id<BR><BR>不能<BR><BR>用戶jack 通過private synonym訪問plant_detail 而jill 是表的所有者,對象不同.<BR><BR> <BR><BR> <BR><BR> <BR><BR>C. 兩個SQL語句中必須使用相同的名字的綁定變量(bind variables)<BR><BR> <BR><BR>例如:<BR><BR> <BR><BR>第一組的兩個SQL語句是相同的(可以共享),而第二組中的兩個語句是不同的(即使在運行時,賦于不同的綁定變量相同的值)<BR><BR>a.<BR><BR>select pin , name from people where pin = :blk1.pin;<BR><BR>select pin , name from people where pin = :blk1.pin;<BR><BR> <BR><BR>b.<BR><BR>select pin , name from people where pin = :blk1.ot_ind;<BR><BR>select pin , name from people where pin = :blk1.ov_ind;<BR><BR> <BR><BR> <BR><BR> <BR><BR> (待續(xù))<BR><BR> <BR><BR> <BR><p><div align="right">本新聞共<font color=red>2</font>頁,當前在第<font color=red>2</font>頁 <a href="164558059816455810544.shtml">1</a> <font color="red">2</font> </div></p>
<P clear=all></P>
</FONT></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<BR>
上一篇:<a href='../../2005-4/29/164558059816455822988.shtml' title ='在DB2中如何實現(xiàn)Oracle的相關功能(二)'>在DB2中如何實現(xiàn)Oracle的相關功能(二)</a> 下一篇:<a href='../../2005-4/29/164558059816455811533.shtml' title ='在DB2中如何實現(xiàn)Oracle的相關功能(三)'>在DB2中如何實現(xiàn)Oracle的相關功能(三)</a>
<BR>
<BR>
<TABLE class="tf" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 20px" align=right>
【<script type="text/javascript">
<!--
document.write("<a href=\"http:\/\/tech.acnow.net\/Sendmail.asp?NewsID=059816455810544\" target=\"_blank\">發(fā)送給好友</a>");
-->
</script>】
【<A href="http://bbs.acnow.net/Index.asp?boardid=103">論壇</A>】
【<script type="text/javascript">
<!--
document.write("<a target=\"_blank\" Href=\"http:\/\/tech.acnow.net\/Users\/AddFavorite.asp?NewsID=8955\" style=\"CURSOR:hand\" onClick=\"window.external.AddFavorite(document.location.href,document.title)\" onMouseMove=\"status='收藏本頁';\" onMouseOut=\"status='';\">添加到收藏夾</a>");
-->
</script>】
【<A target="_self" href="javascript:doZoom(16)">大</A>
<A target="_self" href="javascript:doZoom(14)">中</A>
<A target="_self" href="javascript:doZoom(12)">小</A>】
【<A target="_self" href="javascript:doPrint()">打印</A>】
【<A target="_self" href="javascript:window.close()">關閉</A>】</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=545 border=0>
<TBODY>
<TR>
<TD height=19></TD>
</TR>
<TR>
<TD bgColor=#c6c9d1 height=1></TD>
</TR>
<TR>
<TD height=10></TD>
</TR>
</TBODY>
</TABLE>
<BR>
<DIV id=links>
<TABLE cellSpacing=0 cellPadding=0 width=542 border=0>
<TBODY>
<TR>
<TD><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/Html/DataBase/Oracle/2005-4/29/164558059816455862139.shtml title="ORACLE SQL性能優(yōu)化系列 (二)">ORACLE SQL性能優(yōu)化系列 (二)</a></td></tr>
<tr>
<td Height=1 colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td Height=1 background="http://tech.acnow.net/Files/Img/title_line.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/Html/DataBase/Oracle/2005-4/29/164559059816455980543.shtml title="ORACLE SQL性能優(yōu)化系列 (十二)">ORACLE SQL性能優(yōu)化系列 (十二)</a></td></tr>
<tr>
<td Height=1 colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td Height=1 background="http://tech.acnow.net/Files/Img/title_line.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/Html/DataBase/Oracle/2005-4/29/164558059816455850688.shtml title="ORACLE SQL性能優(yōu)化系列 (六)">ORACLE SQL性能優(yōu)化系列 (六)</a></td></tr>
<tr>
<td Height=1 colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td Height=1 background="http://tech.acnow.net/Files/Img/title_line.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/Html/DataBase/Oracle/2005-4/29/164559059816455960820.shtml title="ORACLE SQL性能優(yōu)化系列 (十四) 完結篇">ORACLE SQL性能優(yōu)化系列 (十四) 完結篇</a></td></tr>
<tr>
<td Height=1 colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td Height=1 background="http://tech.acnow.net/Files/Img/title_line.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/Html/DataBase/Oracle/2005-4/29/16455905981645592205.shtml title="ORACLE SQL性能優(yōu)化系列 (十三)">ORACLE SQL性能優(yōu)化系列 (十三)</a></td></tr>
<tr>
<td Height=1 colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td Height=1 background="http://tech.acnow.net/Files/Img/title_line.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/Html/DataBase/Oracle/2005-4/29/164559059816455975203.shtml title="ORACLE SQL性能優(yōu)化系列 (十一)">ORACLE SQL性能優(yōu)化系列 (十一)</a></td></tr>
<tr>
<td Height=1 colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td Height=1 background="http://tech.acnow.net/Files/Img/title_line.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/html/SoftWare/SoftwareEducate/OracleAuthentication/2006-5/29/150826355.shtml title="ORACLE SQL性能優(yōu)化系列 (一)">ORACLE SQL性能優(yōu)化系列 (一)</a></td></tr>
<tr>
<td Height=1 colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td Height=1 background="http://tech.acnow.net/Files/Img/title_line.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://tech.acnow.net/Files/Img/list_nav_spacer.gif"><a Class="a2" href= http://tech.acnow.net/Html/DataBase/Oracle/2005-4/29/164559059816455944859.shtml title="ORACLE SQL性能優(yōu)化系列 (十)">ORACLE SQL性能優(yōu)化系列 (十)</a></td></tr>
<tr>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -