<?php xml version="1.0" encoding="UTF-8"?> 
<rss version="2.0">
<channel>
<title><![CDATA[周老师科研站]]></title>
<link>http://tmsoft.lsxy.com/</link>
<description><![CDATA[周老师科研站]]></description>
<language>utf-8</language>
<copyright><![CDATA[CopyRight 2008 F2Blog.com|F2Cont.com All Rights Reserved.]]></copyright>
<webMaster><![CDATA[zjd950131@sina.com]]></webMaster>
<generator>F2blog .cont 1.0 build 11.30</generator> 
<image>
	<title>周老师科研站</title> 
	<url>http://tmsoft.lsxy.com/attachments/1913696085.gif</url> 
	<link>http://tmsoft.lsxy.com/</link> 
	<description>周老师科研站</description> 
</image>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=912</link>
	<title><![CDATA[图片详解Google搜索工作原理]]></title>
	<author>周建东</author>
	<category><![CDATA[other]]></category>
	<pubDate>2010-07-07 06:18</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=912</guid>	
	<description><![CDATA[<p><span style="font-family: Arial, sans-serif, Helvetica, Tahoma; line-height: 25px; font-size: 14px" class="Apple-style-span"><a style="color: #006699; text-decoration: underline" href="http://ppcblog.com/how-google-works/">PPCBlog发表了一张图片</a>，详细解释了网页从被Google的网络蜘蛛爬取、收录、索引，最后再到用户进行一次Google搜索并产生搜索结果的过程，图中还描述了Google Adwords在搜索中产生的过程。<br /><br /> 图片简洁明了，对了解Google搜索非常的直观，我们将其编译成中文，下面就是编译成中文Google如何完成一次用户搜索的图片：</span></p><p>&nbsp;<a href="http://tmsoft.lsxy.com/attachments/201007/0334425792.jpg" rel="lightbox[plants]" target="_blank"><img src="http://tmsoft.lsxy.com/attachments/201007/0334425792_f2s.jpg" style="cursor:pointer;" alt="http://tmsoft.lsxy.com/attachments/201007/0334425792.jpg" width="231" height="400" /></a></p><p>&nbsp;<img src="http://tmsoft.lsxy.com/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/><a href="http://tmsoft.lsxy.com/download.php?id=512">dd4d303a-707d-394e-8fd1-d1b78a7a233f.rar</a>&nbsp;(362.62 KB , 下载:114次)</p>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=911</link>
	<title><![CDATA[oracle培训笔记]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-06-11 07:12</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=911</guid>	
	<description><![CDATA[<img src="http://tmsoft.lsxy.com/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/><a href="http://tmsoft.lsxy.com/download.php?id=510">oracle培训１８天老师笔记.rar</a>&nbsp;(491.91 KB , 下载:341次)]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=909</link>
	<title><![CDATA[Oracle的物化视图]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-31 09:16</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=909</guid>	
	<description><![CDATA[<p>Oracle的物化视图提供了强大的功能，可以用于预先计算并保存表连接或聚集等耗时较多的操作的结果，这样，在执行查询时，就可以避免进行这些耗时的操作，而从快速的得到结果。物化视图有很多方面和索引很相似：使用物化视图的目的是为了提高查询性能；物化视图对应用透明，增加和删除物化视图不会影响应用程序中SQL语句的正确性和有效性；物化视图需要占用存储空间；当基表发生变化时，物化视图也应当刷新。</p><p>物化视图可以分为以下三种类型：包含聚集的物化视图；只包含连接的物化视图；嵌套物化视图。三种物化视图的快速刷新的限制条件有很大区别，而对于其他方面则区别不大。创建物化视图时可以指定多种选项，下面对几种主要的选择进行简单说明：</p><p>创建方式（Build Methods）：包括BUILD IMMEDIATE和BUILD DEFERRED两种。BUILD IMMEDIATE是在创建物化视图的时候就生成数据，而BUILD DEFERRED则在创建时不生成数据，以后根据需要在生成数据。默认为BUILD IMMEDIATE。</p><p>查询重写（Query Rewrite）：包括ENABLE QUERY REWRITE和DISABLE Q</p>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=907</link>
	<title><![CDATA[Oracle表介绍--簇表]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-17 07:28</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=907</guid>	
	<description><![CDATA[<div><font face="幼圆" size="4"><strong>簇和簇表</strong></font></div><div><span class="711003906-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 簇其实就是一组表，是一组共享相同数据块的多个表组成。</font></span><span class="711003906-24102008"><font size="2">将经常一起使用的表组合在一起成簇可以提高处理效率。</font></span></div><div><span class="711003906-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 在一个簇中的表就叫做簇表。建立顺序是：<font color="#ff0000">簇&rarr;簇表&rarr;数据&rarr;簇索引</font></font></span></div><div><span class="711003906-24102008"><font size="2">&nbsp;&nbsp;&nbsp; <strong>1、创建簇的</strong></font></span><span class="711003906-24102008"><font size="2"><strong>格式</strong></font></span></div><div><span class="711003906-24102008"><font size="2" color="#ff0000">&nbsp;&nbsp;&nbsp; CREATE CLUSTER cluster_name<br /> &nbsp;&nbsp;&nbsp; (column date_type [,column datatype]...)<br /> &nbsp;&nbsp;&nbsp; [PCTUSED 40 | integer] [PCTFREE 10 | integer]<br /> &nbsp;&nbsp;&nbsp; [SIZE integer]<br /> &nbsp;&nbsp;&nbsp; [INITRANS 1 | integer] [MAXTRANS 255 | integer]<br /> &nbsp;&nbsp;&nbsp; [TABLESPACE tablespace]<br /> &nbsp;&nbsp;&nbsp; </font></span></div>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=906</link>
	<title><![CDATA[Oracle表介绍--分区表]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-17 07:27</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=906</guid>	
	<description><![CDATA[<div><font face="幼圆" size="4"><strong>分区表</strong></font></div><div><span class="418403806-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 在大型应用中，数据表可能会非常巨大，为了使用户在大量数据读写、查询中速度更快，可使用分区技术。</font></span></div><div><span class="418403806-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 分区表就是把非常大的表分割成较小的片段(分区)，在实际应用中在独立分区上操作各个部分，而对用户透明。</font></span></div><div><span class="418403806-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 分区表有5中类型：<font color="#ff0000">范围分区</font>、<font color="#ff0000">散列分区</font>、<font color="#ff0000">列表分区</font>、<font color="#ff0000">组合范围散列分区</font>、<font color="#ff0000">组合范围列表分区</font>。</font></span></div><div><span class="418403806-24102008"><font size="2">&nbsp;&nbsp;&nbsp; <strong>1、范围分区(range)</strong></font></span></div><div><span class="418403806-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 对数据表中某个值的范围进行分区，格式如下：</font></span></div><div><span class="418403806-24102008"><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;"><span class="418403806-24102008">&nbsp;&nbsp;&nbsp; </span>create</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">table</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">t1_trans</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="418403806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp; </span>(</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="418403806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>trans_id </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">number</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">,</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="418403806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>item </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">300</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="418403806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&n</span></span></span></div>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=905</link>
	<title><![CDATA[Oracle表介绍--对象表(二)]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-17 07:26</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=905</guid>	
	<description><![CDATA[<div><font face="幼圆" size="4"><strong>继承</strong></font></div><div><span class="923143207-29102008"><font size="2">&nbsp;&nbsp;&nbsp; <strong>1、创建父类型</strong></font></span></div><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;"><span class="923143207-29102008">&nbsp;&nbsp;&nbsp; </span>create</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">or</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">replace</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">type</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">person </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">as</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">object</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="923143207-29102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp; </span>(</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="923143207-29102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">NAME</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">10</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="923143207-29102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>SEX </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">char</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="923143207-29102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>BIRTHDATE </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">date</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">,</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="923143207-29102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>PLACE </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">100</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="923143207-29102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">member</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">function</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">get_name </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">return</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="923143207-29102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp; </span>) </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">not</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">final</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">; </span><em><span style="font-size: 10pt; background: white; color: red; font-family: &#39;Courier New&#39;">--</span></em><em><span style="font-size: 10pt; background: white; color: red; font-family: 宋体">必须注明，默认为</span></em><em><span style="font-size: 10pt; background: white; color: red; font-family: &#39;Courier New&#39;">final</span></em><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span class="923143207-29102008"><font face="宋体" color="#000000">&nbsp;&nbsp;&</font></span></span>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=904</link>
	<title><![CDATA[Oracle表介绍--对象表(一)]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-17 07:25</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=904</guid>	
	<description><![CDATA[<div><span class="281203806-24102008"><font face="幼圆" size="4"><strong>对象</strong></font></span></div><div><span class="281203806-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 在Oracle中把对象作为一种数据类型object，不但可以包含基本的<font color="#ff0000">数据类型</font>、<font color="#ff0000">集合</font>，还可以为其定义<font color="#ff0000">函数</font>和<font color="#ff0000">过程</font>作为其方法。</font></span></div><div><span class="281203806-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 创建格式如下：</font></span></div><div><span class="281203806-24102008"><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;"><span class="281203806-24102008">&nbsp;&nbsp;&nbsp; </span>create</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">or</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">replace</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">type</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">&nbsp;person </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">as</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">object</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="281203806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp; </span>(</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="281203806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">NAME</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">10</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="281203806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>SEX </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">char</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="281203806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>BIRTHDATE </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">date</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">,</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="281203806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp; </span>PLACE </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">100</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">)</span><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="281203806-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp; </span>);</span></p></span></div><div><span class="281203806-24102008"><font size="2" color="#0000ff">&nbsp;&nbsp;&nbsp; 注意：不能在数据类型中定义以</font></span></div>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=903</link>
	<title><![CDATA[Oracle临时表]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-17 07:22</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=903</guid>	
	<description><![CDATA[<font size="2">Oracle临时表只需要创建一次，其结构总是有效的，每次使用后被清空的只是表里的数据。</font><div><span class="379473706-24102008"><font size="2">&nbsp;&nbsp;&nbsp; Oracle的临时表还保证了</font></span><font size="2">多用户操作的独立性：对于使用同一张临时表的不同用户，ORACLE都会分配一个独立的Temp Segment，这样就避免了多个用户在对同一张临时表操作时发生交叉，从而保证了多个用户操作的并发性和独立性；<br /></font></div><div><span class="379473706-24102008"><font size="2">&nbsp;&nbsp;&nbsp; Oracle临时表分为两种，如下：</font></span></div><div><span class="379473706-24102008"><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;"><span class="379473706-24102008">&nbsp;&nbsp;&nbsp; </span>create</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">global</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">temporary</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">table</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">t66 (</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="379473706-24102008"><font color="#008080">&nbsp;&nbsp;&nbsp;&nbsp;</font></span>&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">ID</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">number</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">,</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="379473706-24102008"><font color="#008080">&nbsp;&nbsp;&nbsp;&nbsp;</font></span>&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">NAME</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">20</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="379473706-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp; </span>OP_DATE </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">date</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">)</span><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;"><span class="379473706-24102008">&nbsp;&nbsp;&nbsp; </span>on</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">commit</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">delete</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">rows</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">;<span class="379473706-24102008"><font color="#ff0000"><em>--数据提交时清空表</em></font></span></span></p></span></div><div><span class="379473706-24102008"><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;"><span class="379473706-24102008">&nbsp;&nbsp;&nbsp; </span>create</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">global</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">temporary</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">table</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">t66 (</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="379473706-24102008"><font color="#008080">&nbsp;&n</font></span></span></span></span></div>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=902</link>
	<title><![CDATA[Oracle表介绍--索引组织表]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-17 07:10</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=902</guid>	
	<description><![CDATA[<font size="2">&nbsp;索引组织表(IOT)不仅可以存储数据，还可以存储为表建立的索引。索引组织表的数据是根据主键排序后的顺序进行排列的，这样就提高了访问的速度。但是这是由牺牲插入和更新性能为代价的(每次写入和更新后都要重新进行重新排序)。</font><div><span class="961263706-24102008"><font size="2">&nbsp;&nbsp;&nbsp; 索引组织表的创建格式如下：</font></span></div><div><span class="961263706-24102008"><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;"><span class="961263706-24102008">&nbsp;&nbsp;&nbsp; </span>create</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">table</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">indexTable(</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="961263706-24102008"><font color="#008080">&nbsp;&nbsp;&nbsp;&nbsp;</font></span>&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">ID</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">10</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="961263706-24102008"><font color="#008080">&nbsp;&nbsp;&nbsp;&nbsp;</font></span>&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">NAME</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">varchar2</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: blue; font-family: &#39;Courier New&#39;">20</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">),</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="961263706-24102008"><font color="#008080">&nbsp;&nbsp;&nbsp;&nbsp;</font></span>&nbsp; </span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">constraint</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">pk_id </span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">primary</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">key</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">(</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">ID</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">)</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="961263706-24102008">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp; </span>)</span><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span><span class="961263706-24102008"><font color="#008080">&nbsp;&nbsp;&nbsp;&nbsp;</font></span></span></span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">organization</span><span style="font-size: 10pt; background: white; color: teal; font-family: &#39;Courier New&#39;">index</span><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;">;<font color="#000000">式</font></span></p><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><font face="宋体" color="#000000"><span class="961263706-24102008">&nbsp;&nbsp;&nbsp; 注意两点：</span></font></span></p><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><span class="961263706-24102008"><font face="宋体" color="#0000ff">&nbsp;&nbsp;&nbsp; ● 创建IOT时，必须要设定主键，否则报错。</font></span></span></p><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-size: 10pt; background: white; color: navy; font-family: &#39;Courier New&#39;"><font face="宋体" color="#000000"><span class="961263706-24102008">&nbsp;&nbsp;&nbsp;</span></font></span></p></span></div>]]></description>
</item>
<item>
	<link>http://tmsoft.lsxy.com/index.php?load=read&amp;id=901</link>
	<title><![CDATA[timestamp 的存储与timestamp with timezone]]></title>
	<author>周建东</author>
	<category><![CDATA[oracle]]></category>
	<pubDate>2010-05-17 06:30</pubDate>
	<guid>http://tmsoft.lsxy.com/index.php?load=read&amp;id=901</guid>	
	<description><![CDATA[<font size="2"><strong><span style="color: black; font-family: &#39;Courier New&#39;">Timestamp with time zone</span></strong><strong><span style="color: black; font-family: 宋体">是指当地时区与格林尼制时间的偏移。</span></strong></font><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">&nbsp;</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">SQL&gt; create table t_timestamp(t1 date,</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">t2 timestamp(9),</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">t3 timestamp(9) with local time zone,</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">t4 timestamp(9) with time zone)</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">&nbsp;</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">SQL&gt; select dbtimezone from dual;</font></span></strong><span style="color: #ff6600; font-family: &#39;Courier New&#39;"><font size="2">DBTIMEZONE</font></span><span style="color: #ff6600; font-family: &#39;Courier New&#39;"><font size="2">+08:00</font></span><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">&nbsp;</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">SQL&gt; select sessiontimezone from dual;</font></span></strong><span style="color: #ff6600; font-family: &#39;Courier New&#39;"><font size="2">SESSIONTIMEZONE</font></span><span style="color: #ff6600; font-family: &#39;Courier New&#39;"><font size="2">+08:00</font></span><font size="2"><strong><span style="color: black; font-family: &#39;Courier New&#39;">SQL&gt; insert into t_timestamp</span></strong></font><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2">values</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2"><span>&nbsp;</span><span>&nbsp;&nbsp;&nbsp;</span>(to_date(&#39;2008-01-01 1:0:1&#39;,&#39;yyyy-mm-dd hh24:mi:ss&#39;),</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2"><span>&nbsp;</span><span>&nbsp;&nbsp;</span><span>&nbsp;</span>timestamp&#39;2008-01-01 1:0:1.000000001&#39;,</font></span></strong><strong><span style="color: black; font-family: &#39;Courier New&#39;"><font size="2"><span>&n</span></font></span></strong>]]></description>
</item>
</channel>
</rss>