<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type='text/xsl' href='http://sunmoonking.spaces.live.com/mmm2008-05-17_13.22/rsspretty.aspx?rssquery=en-US;http%3a%2f%2fsunmoonking.spaces.live.com%2fcategory%2fDB2%2ffeed.rss' version='1.0'?><rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msn="http://schemas.microsoft.com/msn/spaces/2005/rss" xmlns:live="http://schemas.microsoft.com/live/spaces/2006/rss" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>日月明王ORACLE DBA空间: DB2</title><description /><link>http://sunmoonking.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&amp;_c=BlogPart&amp;partqs=catDB2</link><language>en-US</language><pubDate>Tue, 24 Jun 2008 05:55:04 GMT</pubDate><lastBuildDate>Tue, 24 Jun 2008 05:55:04 GMT</lastBuildDate><generator>Microsoft Spaces v1.1</generator><docs>http://www.rssboard.org/rss-specification</docs><ttl>60</ttl><cf:parentRSS>http://sunmoonking.spaces.live.com/blog/feed.rss</cf:parentRSS><live:type>blogcategory</live:type><live:identity><live:id>-2036299113152677942</live:id><live:alias>sunmoonking</live:alias></live:identity><cf:listinfo><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="typelabel" label="Type" /><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="tag" label="Tag" /><cf:group element="category" label="Category" /><cf:sort element="pubDate" label="Date" data-type="date" default="true" /><cf:sort element="title" label="Title" data-type="string" /><cf:sort ns="http://purl.org/rss/1.0/modules/slash/" element="comments" label="Comments" data-type="number" /></cf:listinfo><item><title>DB2实现ORACLE的CONNECT BY PRIOR START WITH功能</title><link>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!870.entry</link><description>&lt;div&gt;DB2 DBA CONNECT BY PRIOR START WITH&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;日月明王BLOG &lt;a href="http://sunmoonking.spaces.live.com/"&gt;http://sunmoonking.spaces.live.com&lt;/a&gt;&lt;/div&gt;
&lt;div style=""&gt;&lt;font size=3&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;ORACLE&lt;/span&gt;&lt;span lang=ZH-CN style="color:#333333;font-family:宋体"&gt;中常用如下语句实现父子关联&lt;/span&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=""&gt;&lt;span style="background:#d9d9d9;color:black;font-family:Tahoma"&gt;&lt;font size=3&gt;SELECT ORG_CODE FROM TABLE1&lt;br&gt;                  CONNECT BY PRIOR ORG_CODE = PARENT_CODE START WITH ORG_CODE = '21101010' AND &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=""&gt;&lt;span style="background:#d9d9d9;color:black;font-family:Tahoma"&gt;&lt;font size=3&gt;DEALER_ID = '21101010'&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=""&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;&lt;font size=3&gt; &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=""&gt;&lt;font size=3&gt;&lt;span lang=ZH-CN style="color:#333333;font-family:宋体"&gt;在&lt;/span&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;DB2&lt;/span&gt;&lt;span lang=ZH-CN style="color:#333333;font-family:宋体"&gt;中可以用以下方式实现&lt;/span&gt;&lt;/font&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;&lt;font size=3&gt;.&lt;br&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="background:#d9d9d9;color:black;font-family:Tahoma"&gt;&lt;font size=3&gt;with b(org_code,parent_code,1 name) as (&lt;br&gt; select org_code,parent_code&lt;br&gt;     from TABLE1 where  ORG_CODE = '21101010' AND DEALER_ID = '21101010'&lt;br&gt; union all&lt;br&gt; select a.org_code,a.parent_code&lt;br&gt;     from TABLE1 as a,b&lt;br&gt;  where b.ORG_CODE = a.PARENT_CODE )&lt;br&gt;select * from b&lt;/font&gt;&lt;/span&gt;&lt;font size=3&gt;&lt;span style="color:#333333;font-family:Verdana"&gt; &lt;br&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:#333333;font-family:宋体"&gt;谓词&lt;/span&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;WHERE &lt;/span&gt;&lt;span lang=ZH-CN style="color:#333333;font-family:宋体"&gt;可以在后面添加&lt;/span&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;,&lt;/span&gt;&lt;span lang=ZH-CN style="color:#333333;font-family:宋体"&gt;比如&lt;/span&gt;&lt;span style="color:#333333;font-family:Verdana"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=""&gt;&lt;span style="background:#d9d9d9;color:black;font-family:Tahoma"&gt;&lt;font size=3&gt;......select * from b where parent_code='21101010'&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2036299113152677942&amp;page=RSS%3a+DB2%e5%ae%9e%e7%8e%b0ORACLE%e7%9a%84CONNECT+BY+PRIOR+START+WITH%e5%8a%9f%e8%83%bd&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=sunmoonking.spaces.live.com&amp;amp;GT1=sunmoonking"&gt;</description><comments>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!870.entry#comment</comments><guid isPermaLink="true">http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!870.entry</guid><pubDate>Mon, 05 Mar 2007 06:34:12 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!870/comments/feed.rss</wfw:commentRss><wfw:comment>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!870.entry#comment</wfw:comment><dcterms:modified>2007-03-05T06:35:35Z</dcterms:modified></item><item><title>SQL0668N 原因码为 "1"，所以不允许操作 SQLSTATE=57016 ORACLE一次失败的导入到DB2</title><link>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!754.entry</link><description>&lt;div&gt;SQL0668N 原因码为 &amp;quot;1&amp;quot; SQLSTATE=57016 ORACLE导入到DB2&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;日月明王的BLOG &lt;font color="#000000"&gt; &lt;/font&gt;&lt;a href="http://sunmoonking.spaces.live.com/"&gt;&lt;font color="#000000"&gt;http://sunmoonking.spaces.live.com&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;           &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;利用&lt;/span&gt;&lt;font face="Times New Roman"&gt;MTK&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;工具没有成功导入数据，于是用（&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;用&lt;/span&gt;&lt;font face="Times New Roman"&gt;MTK&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;工具导入到&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2&lt;b&gt;&lt;span style="font-size:24pt;color:black;font-family:TheSansMonoCondensed-SemiLight"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!751.entry"&gt;&lt;u&gt;&lt;font face="Times New Roman" color="#800080" size=3&gt;http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!751.entry&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;&lt;font color="#000000" size=3&gt;）最后所写的方法手工批量导入。一切顺利。做完后抽样检查，发现有些表出现如下问题。&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;db2 =&amp;gt; select * from TABLE_NAME &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;USER_FUNCTION_ID&lt;span&gt;     &lt;/span&gt;USER_ID&lt;span&gt;            &lt;/span&gt;&lt;span&gt;  &lt;/span&gt;DEALER_ID FUNCTION_ID&lt;span&gt;          &lt;/span&gt;CREATE_&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;BY&lt;span&gt;            &lt;/span&gt;CREATE_DATE&lt;span&gt;                &lt;/span&gt;UPDATE_BY&lt;span&gt;            &lt;/span&gt;UPDATE_DATE&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;-------------------- -------------------- --------- -------------------- -------&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;SQL0668N&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;由于表&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt; &amp;quot;ADMINISTRATOR. TABLE_NAME &amp;quot; &lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;上的原因码为&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;，所以不允许操作。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;  &lt;/span&gt;SQLSTATE=57016&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;查了下问题原因是原因是装入时有数据违反了检查约束，造成表处于检查挂起状态。网上说可以用&lt;/span&gt;&lt;font face="Times New Roman"&gt;set integrity for table_name check immediate unchecked&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;解除表的检查挂起状态&lt;/span&gt;&lt;font face="Times New Roman"&gt;, &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;但是运行完后还是无法访问此表&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;db2 =&amp;gt; set integrity for table_name check immediate unchecked&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;DB20000I&lt;span&gt;  &lt;/span&gt;SQL&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;命令成功完成。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;db2 =&amp;gt; select * from TABLE_NAME &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;USER_FUNCTION_ID&lt;span&gt;     &lt;/span&gt;USER_ID&lt;span&gt;              &lt;/span&gt;DEALER_ID FUNCTION_ID&lt;span&gt;          &lt;/span&gt;CREATE_&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;BY&lt;span&gt;            &lt;/span&gt;CREATE_DATE&lt;span&gt;                &lt;/span&gt;UPDATE_BY&lt;span&gt;            &lt;/span&gt;UPDATE_DATE&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;-------------------- -------------------- --------- -------------------- -------&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;SQL0668N&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;由于表&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt; &amp;quot;ADMINISTRATOR. TABLE_NAME &amp;quot; &lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;上的原因码为&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;，所以不允许操作。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;  &lt;/span&gt;SQLSTATE=57016&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;问题依旧。又试图用再次&lt;/span&gt;&lt;font face="Times New Roman"&gt;LOAD&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;的方法使其状态正常，通过分别发出带有&lt;/span&gt;&lt;font face="Times New Roman"&gt; RESTART &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;或&lt;/span&gt;&lt;font face="Times New Roman"&gt; TERMINATER &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;选项的&lt;/span&gt;&lt;font face="Times New Roman"&gt; LOAD &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;来重新启动或终止先前失败的对此表的&lt;/span&gt;&lt;font face="Times New Roman"&gt; LOAD &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;操作。但是问题依旧。&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;db2 =&amp;gt; LOAD&lt;span&gt;  &lt;/span&gt;FROM C:\MTK\projects\Unknown7\DataOutScripts\FILENAME_TABLE_NAME.out of DEL restart&lt;span&gt;  &lt;/span&gt;INTO TABLE_NAME&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;SQL27902N&lt;span&gt;  &lt;/span&gt;LOAD RESTART/TERMINATE &lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;在未处于&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt; LOAD PENDING &lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;状态的表上不允许。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;再试&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;C:\Documents and Settings\Administrator&amp;gt;db2 set integrity for TABLE_NAME immediate checked&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;不成功。&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;怀疑现在的问题不仅仅是表的问题，于是察看&lt;/span&gt;&lt;font face="Times New Roman"&gt;TABLESPACE&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;db2 =&amp;gt;list tablespaces show detail&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;表空间标识&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:Arial"&gt; &lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                       &lt;/span&gt;= 2&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;名称&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                       &lt;/span&gt;= USERSPACE1&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;类型&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                                       &lt;/span&gt;= &lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;数据库管理空间&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;内容&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                                &lt;/span&gt;= &lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;所有持久数据。大型表空间。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;&lt;font color="#000000"&gt;状态&lt;/font&gt;&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000"&gt;&lt;span&gt;                   &lt;/span&gt;= &lt;/font&gt;&lt;b&gt;&lt;span style="color:red"&gt;0x0020&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;详细解释：&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;&lt;font color="#000000"&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;color:red;font-family:宋体"&gt;备份暂挂&lt;/span&gt;&lt;span style="background:#d9d9d9;color:red;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;总计页数&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                            &lt;/span&gt;= 40960&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;可用页数&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                            &lt;/span&gt;= 40928&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;已用页数&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                            &lt;/span&gt;= 40448&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;可用页数&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                            &lt;/span&gt;= 480&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;高水位标记（页）&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                    &lt;/span&gt;= 40448&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;页大小（以字节计）&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                  &lt;/span&gt;= 16384&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;扩展数据块大小（页）&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                &lt;/span&gt;= 32&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;预取大小（页）&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                      &lt;/span&gt;= 32&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;容器数&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;                                &lt;/span&gt;= 1&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;最小恢复时间&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;                            &lt;/span&gt;= 2007-02-13-02.29.51.000000&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;想通过以下命令使其正常&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;db2 =&amp;gt; alter tablespace&lt;span&gt;  &lt;/span&gt;USERSPACE1 switch online&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;DB20000I&lt;span&gt;  &lt;/span&gt;SQL&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;命令成功完成。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;状态一样&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;于是通过&lt;/span&gt;&lt;font face="Times New Roman"&gt;BACKUP&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;来除去备份暂挂状态&lt;/span&gt;&lt;font face="Times New Roman"&gt;, &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;手工备份后恢复正常&lt;/span&gt;&lt;font face="Times New Roman"&gt;. 0x0000&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;db2 backup db DB_NAME tablespace (userspace1)&lt;/span&gt;&lt;span style="font-size:10pt;color:#222222;font-family:Tahoma"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:10pt;color:#222222;font-family:Tahoma"&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;再解除表的检查挂起状态&lt;/span&gt;&lt;span style="font-size:10pt;color:#222222;font-family:Tahoma"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;db2 =&amp;gt; set integrity for tt_user_function immediate checked&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;DB20000I&lt;span&gt;  &lt;/span&gt;SQL&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;命令成功完成。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;db2 =&amp;gt; select count(*) from tt_user_function;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;SQL0104N&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;在&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt; &amp;quot;rom tt_user_function&amp;quot; &lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;后面找到异常标记&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;。预期标记可能包括：&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&amp;quot;END-OF-STATEMENT&amp;quot;&lt;/span&gt;&lt;span lang=ZH-CN style="background:#d9d9d9;font-family:宋体"&gt;。&lt;/span&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;span&gt;  &lt;/span&gt;SQLSTATE=42601&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;db2 =&amp;gt; select count(*) from tt_user_function&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;1&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;-----------&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background:#d9d9d9;font-family:Arial"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;1534&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;访问正常&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2036299113152677942&amp;page=RSS%3a+SQL0668N+%e5%8e%9f%e5%9b%a0%e7%a0%81%e4%b8%ba+%221%22%ef%bc%8c%e6%89%80%e4%bb%a5%e4%b8%8d%e5%85%81%e8%ae%b8%e6%93%8d%e4%bd%9c+SQLSTATE%3d57016+ORACLE%e4%b8%80%e6%ac%a1%e5%a4%b1%e8%b4%a5%e7%9a%84%e5%af%bc%e5%85%a5%e5%88%b0DB2&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=sunmoonking.spaces.live.com&amp;amp;GT1=sunmoonking"&gt;</description><comments>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!754.entry#comment</comments><guid isPermaLink="true">http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!754.entry</guid><pubDate>Tue, 27 Feb 2007 01:22:49 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!754/comments/feed.rss</wfw:commentRss><wfw:comment>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!754.entry#comment</wfw:comment><dcterms:modified>2007-02-27T01:22:49Z</dcterms:modified></item><item><title>DB2 ORACLE 常用函数异同</title><link>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!753.entry</link><description>&lt;h1&gt;DB2 ORACLE 常用函数异同&lt;/h1&gt;
&lt;div&gt;
&lt;p align=left&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;日月明王的BLOG  :       &lt;a href="http://sunmoonking.spaces.live.com/"&gt;http://sunmoonking.spaces.live.com&lt;/a&gt;   &lt;/span&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p align=left&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;
&lt;table style="border-right:medium none;border-top:medium none;border-left:medium none;border-bottom:medium none;border-collapse:collapse" cellspacing=0 cellpadding=0 border=1&gt;
&lt;tbody&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;span style="font-size:10pt;font-family:ˎ̥"&gt;ORACLE&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;span style="font-size:10pt;font-family:ˎ̥"&gt;DB2&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;COUNT()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回一组行或值的个数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;MAX()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回一组数值中的最大值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;MIN()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回一组数值中的最小值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SUM()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回一组数据的和&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;b style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;SUBSTR&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;(EXP1,EXP2)&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;串自&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;处开始的&lt;b style=""&gt;子串&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;b style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;RTRIM&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;()&lt;b style=""&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;删除字符串后面的空格&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;LTRIM()&lt;b style=""&gt;&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;删除字符串前面的空格&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;REPLACE(EXP1,EXP2,EXP3)&lt;b style=""&gt;&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;用&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP3&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;替代&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;中所有的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;TRUNC()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;b style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;&lt;/b&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;从表达式小数点右边的位置开始截断并返回该数值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ROUND()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;相同&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;小数点右边的第&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;位置处开始的四舍五入值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;TO_CHAR()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;CHAR()&lt;span style=""&gt;    &lt;/span&gt;VARCHAR()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回字符串表示&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;TO_DATE()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;b style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;YEAR() &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;MONTH() MINUTE() HOUR() TIME()&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回数值的年部分&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;INSTR()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;b style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;POSSTR&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;(EXP1,EXP2)&lt;b style=""&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;在&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;中的位置&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;NVL()&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;b style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;NULLIF&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;(EXP1,EXP2)&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;如果&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1=EXP2,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;则为&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;NULL,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;否则为&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;
&lt;tr style=""&gt;
&lt;td valign=top width=210&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;LPAD(slno,20,’0’)&lt;/font&gt;&lt;/span&gt;
&lt;td valign=top width=193&gt;
&lt;p style=""&gt;&lt;font face="Times New Roman"&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;repeat('0',20-length(rtrim(char(slno)))) || rtrim(char(slno))&lt;/span&gt;&lt;/font&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/font&gt;
&lt;td valign=top width=187&gt;
&lt;p style=""&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2036299113152677942&amp;page=RSS%3a+DB2+ORACLE+%e5%b8%b8%e7%94%a8%e5%87%bd%e6%95%b0%e5%bc%82%e5%90%8c&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=sunmoonking.spaces.live.com&amp;amp;GT1=sunmoonking"&gt;</description><comments>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!753.entry#comment</comments><guid isPermaLink="true">http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!753.entry</guid><pubDate>Sun, 25 Feb 2007 02:50:58 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!753/comments/feed.rss</wfw:commentRss><wfw:comment>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!753.entry#comment</wfw:comment><dcterms:modified>2007-03-12T02:38:21Z</dcterms:modified></item><item><title>ORACLE 用MTK工具导入到DB2</title><link>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!751.entry</link><description>&lt;div&gt;ORACLE 用MTK工具导入到DB2 &lt;/div&gt;
&lt;div&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;&lt;font color="#000000" size=3&gt;日月明王的BLOG：&lt;a href="http://sunmoonking.spaces.live.com/"&gt;http://sunmoonking.spaces.live.com&lt;/a&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;&lt;font color="#000000" size=3&gt;      &lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;对于&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;oracle &lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;到&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt; db2&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;表结构，函数，存储结构的迁移建议使用&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;MTK&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;工具来实现，这样可以省掉不少工作量，个别少数的采用手工迁移.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;&lt;font color="#000000" size=3&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;      关于&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;MTK&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;工具，从如下&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;url&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;可以下载到&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;1.4.9&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;版本：&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;&lt;a href="http://www-306.ibm.com/software/data/db2/migration/mtk/"&gt;&lt;u&gt;&lt;font color="#0000ff"&gt;http://www-306.ibm.com/software/data/db2/migration/mtk/&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;&lt;font color="#000000" size=3&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;直接从开始菜单运行可能会没有响应，这是因为该工具必须基于&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;jdk 1.4&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;的环境以上，请尝试从命令行启动：&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;&lt;br&gt;           1. set path=%path%;C:\Program Files\IBM\SQLLIB\java\jdk\bin&lt;br&gt;           2. cd c:\mtk&lt;br&gt;           3. MTKMain.bat -mtk&lt;br&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;这样就可以启动了，注意&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;jdk&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;路径按照实际情况设定.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;&lt;font color="#000000" size=3&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;      关于&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;mtk&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;的使用方法，可以参考如下&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;url&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:12pt;font-family:宋体"&gt;，非常详细：&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman'"&gt;&lt;a href="http://www.ibm.com/developerworks/cn/db2/library/techarticles/dm-0411yip/"&gt;&lt;u&gt;&lt;font color="#800080"&gt;http://www.ibm.com/developerworks/cn/db2/library/techarticles/dm-0411yip/&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;&lt;font color="#000000" size=3&gt;      以下就几个重要页面简单说明下个人使用心得。&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;font face="Times New Roman"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;Specify Source&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;点击&lt;/span&gt;&lt;font face="Times New Roman"&gt;Extract &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;，输入&lt;/span&gt;&lt;font face="Times New Roman"&gt;JDBC/ ODBC&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;数据库名和用户名密码，输入一个&lt;/span&gt;&lt;font face="Times New Roman"&gt;FILENAME&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;，在以后的操作中将根据此&lt;/span&gt;&lt;font face="Times New Roman"&gt;FILENAME&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;生成各种中间脚本。然后选择需要进行转换的&lt;/span&gt;&lt;font face="Times New Roman"&gt;OBJECT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;（&lt;/span&gt;&lt;font face="Times New Roman"&gt;PROCEDURE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;转换不理想，基本实现不了）。然后点击&lt;/span&gt;&lt;font face="Times New Roman"&gt;EXTRACE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;进行转换，&lt;/span&gt;&lt;font face="Times New Roman"&gt;EXTRACE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;结果放入&lt;/span&gt;&lt;b&gt;&lt;font face="Times New Roman"&gt;FILENAME.src&lt;/font&gt;&lt;/b&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;文件中。可以&lt;/span&gt;&lt;font face="Times New Roman"&gt;VIEW&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;下查看，此文件中是原&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;中的&lt;/span&gt;&lt;font face="Times New Roman"&gt;DDL&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;脚本。&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;      当然，你如果有脚本的话就不用&lt;/span&gt;&lt;font face="Times New Roman"&gt;TKT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;去生成脚本，点击&lt;/span&gt;&lt;font face="Times New Roman"&gt;import&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;选择你已有的脚本即可。&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt; &lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;font face="Times New Roman"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;CONVERT&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;然后到&lt;/span&gt;&lt;font face="Times New Roman"&gt;CONVERT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;页面，可以看到上一步产生的&lt;/span&gt;&lt;font face="Times New Roman"&gt;FILENAME.src&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;列在了窗口的左部。本页面设置日期的转换格式，语言等，在&lt;/span&gt;&lt;font face="Times New Roman"&gt;GLOBAL TYPE MAPPING&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;中还可以对&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;，&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;之间的数据类型的对应进行调整，比如将&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;的&lt;/span&gt;&lt;font face="Times New Roman"&gt;DATE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;型数据对应成&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;的&lt;/span&gt;&lt;font face="Times New Roman"&gt;CHAR&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;型。&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;点击&lt;/span&gt;&lt;font face="Times New Roman"&gt;CONVERT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;，会得到&lt;/span&gt;&lt;b&gt;&lt;font face="Times New Roman"&gt;FILENAME.DB2&lt;/font&gt;&lt;/b&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;文件和&lt;/span&gt;&lt;font face="Times New Roman"&gt;FILENAME.RPT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;文件，&lt;/span&gt;&lt;font face="Times New Roman"&gt;FILENAME.DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;中保存原&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;的&lt;/span&gt;&lt;font face="Times New Roman"&gt;DDL&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;语句（注释掉的）和&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;的&lt;/span&gt;&lt;font face="Times New Roman"&gt;DDL &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;语句&lt;/span&gt;&lt;font face="Times New Roman"&gt;, &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;可以仔细观察此文件来了解&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;和&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;的区别&lt;/span&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;另一个文件&lt;/span&gt;&lt;font face="Times New Roman"&gt;FILENAME.RPT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;保存转换过程中的特殊处理的地方&lt;/span&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;比如&lt;/span&gt;&lt;font face="Times New Roman"&gt;INDEX&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;名的长度等&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt; &lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;font face="Times New Roman"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;REFINE&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;在&lt;/span&gt;&lt;font face="Times New Roman"&gt;REFINE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;页面&lt;/span&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;有发生在转换过程中的详细错误&lt;/span&gt;&lt;font face="Times New Roman"&gt;, &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;可以仔细检查错误并修正必须修正的错误&lt;/span&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;有些信息可以被忽略&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;如&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt;16 Duplicate definition of object-name &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt;20 Object name has been changed to new-name &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt; &lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;font face="Times New Roman"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;GENERATE&lt;span&gt;  &lt;/span&gt;DATA&lt;span&gt;  &lt;/span&gt;TRANSFER&lt;span&gt;  &lt;/span&gt;SCRIPTS&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;在&lt;/span&gt;&lt;font face="Times New Roman"&gt;GENERATE&lt;span&gt;  &lt;/span&gt;DATA&lt;span&gt;  &lt;/span&gt;TRANSFER&lt;span&gt;  &lt;/span&gt;SCRIPTS&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;页面可以看到在&lt;/span&gt;&lt;font face="Times New Roman"&gt;CONVERT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;时生成的&lt;/span&gt;&lt;font face="Times New Roman"&gt;FILENAME.DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;文件&lt;/span&gt;&lt;font face="Times New Roman"&gt;. &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;点击&lt;/span&gt;&lt;font face="Times New Roman"&gt;CREATE&lt;span&gt;  &lt;/span&gt;SCRIPTS&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;后会生成一些辅助脚本&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;大致是将&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;的数据&lt;/span&gt;&lt;font face="Times New Roman"&gt;SELECT &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;到以&lt;/span&gt;&lt;font face="Times New Roman"&gt;OBJECT_NAME&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;为名字的&lt;/span&gt;&lt;font face="Times New Roman"&gt;OUT&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;文件中&lt;/span&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;然后在&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;中以&lt;/span&gt;&lt;font face="Times New Roman"&gt;LOAD&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;方式&lt;/span&gt;&lt;font face="Times New Roman"&gt;(&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;在本界面可以选择加载方式&lt;/span&gt;&lt;font face="Times New Roman"&gt;)&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;加载数据&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt; &lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;font face="Times New Roman"&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;Deploy&lt;span&gt;  &lt;/span&gt;to&lt;span&gt;  &lt;/span&gt;Target&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;最后一页&lt;/span&gt;&lt;font face="Times New Roman"&gt;Deploy&lt;span&gt;  &lt;/span&gt;to&lt;span&gt;  &lt;/span&gt;Target&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;会提醒你有多少错误还没有修改&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;你需要输入目标&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;数据库的信息&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;注意选择&lt;/span&gt;&lt;font face="Times New Roman"&gt;Extract and store data on this system&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;选项&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt; &lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=3&gt;&lt;font color="#000000"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;            &lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;本次到入&lt;/span&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;通过&lt;/span&gt;&lt;font face="Times New Roman"&gt;ODBC&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;连接远端&lt;/span&gt;&lt;font face="Times New Roman"&gt;ORACLE&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;导入到本机&lt;/span&gt;&lt;font face="Times New Roman"&gt;DB2, 1G MEM 500M&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;数据&lt;/span&gt;&lt;font face="Times New Roman"&gt;, &lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;耗时&lt;/span&gt;&lt;font face="Times New Roman"&gt;2&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;小时&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;结果会保存在&lt;/span&gt;&lt;font face="Times New Roman"&gt;LOG&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;文件中&lt;/span&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;可以查看那些不成功的&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;如&lt;/span&gt;&lt;font face="Times New Roman"&gt;SQL0286N&lt;span&gt;  &lt;/span&gt;&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;找不到页大小至少为&lt;/span&gt;&lt;font face="Times New Roman"&gt;XXXXX&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;则需要建立更大的缓冲池&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;另外几个&lt;/span&gt;&lt;font face="Times New Roman"&gt;HTML&lt;/font&gt;&lt;span lang=ZH-CN style="font-family:宋体"&gt;文件更能直观地统计出导入的结果&lt;/span&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman" color="#000000" size=3&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;
&lt;p style=""&gt;&lt;span style="font-size:9.5pt;color:#333333;font-family:Verdana"&gt;&lt;span style=""&gt;          &lt;/span&gt;&lt;/span&gt;&lt;font size=3&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;有时&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;, MTK&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;由于一些错误而不能自动&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;LOAD&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;数据&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;此时可以利用&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;GENERATE  DATA  TRANSFER  SCRIPTS&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;阶段产生的脚本手工插入&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;首先用&lt;/span&gt;&lt;b&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;FILENAME.DB2&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;的&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;DDL&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;语句生成表，然后用&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;DataMove_FILENAME.bat&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;进行导入，&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;DataMove_FILENAME.bat&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;中的内容是形如&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;LOAD&lt;span style=""&gt;  &lt;/span&gt;FROM C:\MTK\projects\Unknown7\DataOutScripts\YOURUSER_TABLE_NAME.out of DEL MODIFIED BY&lt;span style=""&gt;  &lt;/span&gt;delprioritychar METHOD P(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25)&lt;span style=""&gt;   &lt;/span&gt;INSERT INTO TT_RECEIVE_MONEY&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;的语句&lt;/span&gt;&lt;font face="Times New Roman"&gt;&lt;span lang=ZH-CN style="color:black"&gt; &lt;/span&gt;&lt;span style="color:black"&gt;, &lt;/span&gt;&lt;/font&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;大家可以到&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;C:\MTK\projects\Unknown7\DataOutScripts\&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;下仔细观察下每个表所对应的&lt;/span&gt;&lt;span style="color:black"&gt;&lt;font face="Times New Roman"&gt;OUT&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="color:black;font-family:宋体"&gt;文件。&lt;/span&gt;&lt;/font&gt;&lt;span style="color:black"&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2036299113152677942&amp;page=RSS%3a+ORACLE+%e7%94%a8MTK%e5%b7%a5%e5%85%b7%e5%af%bc%e5%85%a5%e5%88%b0DB2&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=sunmoonking.spaces.live.com&amp;amp;GT1=sunmoonking"&gt;</description><comments>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!751.entry#comment</comments><guid isPermaLink="true">http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!751.entry</guid><pubDate>Mon, 12 Feb 2007 03:03:44 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!751/comments/feed.rss</wfw:commentRss><wfw:comment>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!751.entry#comment</wfw:comment><dcterms:modified>2007-02-13T06:12:49Z</dcterms:modified></item><item><title>DB2函数大全</title><link>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!739.entry</link><description>&lt;h1&gt;DB2函数大全&lt;/h1&gt;
&lt;div&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;函数名&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;        &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;函数解释&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;span&gt;&lt;font face="Times New Roman"&gt;                                &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;函数举例&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;AVG()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一组数值的平均值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTAVG(SALARY)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;CORR(),CORRELATION()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一对数值的关系系数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCORRELATION(SALARY,BONUS)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;COUNT()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一组行或值的个数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCOUNT(*)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;COVAR(),COVARIANCE()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一对数值的协方差&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCOVAR(SALARY,BONUS)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;MAX()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一组数值中的最大值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTMAX(SALARY)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;MIN()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一组数值中的最小值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTMIN(SALARY)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;STDDEV()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一组数值的标准偏差&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTSTDDEV(SALARY)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SUM()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一组数据的和&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTSUM(SALARY)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;VAR(),VARIANCE()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一组数值的方差&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTVARIANCE(SALARY)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ABS(),ABSVAL()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回参数的绝对值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTABS(-3.4)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ACOS()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回参数的反余弦值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTACOS(0.9)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ASCII()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回整数参数最左边的字符的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ASCII&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;码&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTASCII('R')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ASIN()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回用弧度表示的角度的参数的反正弦函数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTASIN(0.9)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ATAN()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回参数的反正切值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;该参数用弧度表示的角度的参数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTATAN(0.9)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ATAN2()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回用弧度表示的角度的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;X&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;和&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;Y&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;坐标的反正切值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTATAN2(0.5,0.9)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;BIGINT()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回整型常量中的数字或字符串的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;64&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;位整数表示&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTBIGINT(EMP_NO)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;CEILING() OR CEIL()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回比参数大或等于参数的最小的整数值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCEILING(3.56)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCEIL(4.67)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;CHAR()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回日期时间型&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;字符串&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;整数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;十进制或双精度浮点数的字符串表示&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCHAR(SALARY,',')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;CHR()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回具有由参数指定的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ASCII&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;码的字符&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCHAR(167)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;CONCAT()&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回两个字符串的连接&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCONCAT(EMP_NO,EMP_NAM)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;YEAR()&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回数值的年部分&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTYEAR('2003/01/02')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;VARCHAR()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回字符串&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;日期型&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;图形串的可变长度的字符串表示&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTVARCHAR(EMP_NAM,50)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;UCASE() OR UPPER()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回字符串的大写&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECT UCASE(EMP_NAM)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTUPPER(EMP_NO)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;TRUNCATE() OR TRUNC()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　从表达式小数点右边的位置开始截断并返回该数值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTTRUNCATE(345.6789,2)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;TIME()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个数值中的时间&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTTIME('2001-03-19.12.30.123456')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman"&gt;&lt;b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;SUBSTR&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;(EXP1,EXP2)&lt;/span&gt;&lt;/font&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;串自&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;处开始的&lt;b&gt;子串&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECT SUBSTR('CDNJFDJFJD',5)FROM BSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECT SUBSTR('CDNJFDJFJD',5,2)FROM BSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SQRT()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回该参数的平方根&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTSQRT(36)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SPACE()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回由参数指定的长度&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;包含空格在内的字符串&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTSPACE(10)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SECOND()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个数值的秒部分&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTSECOND('18:34:32')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman"&gt;&lt;b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;RTRIM&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;()&lt;/span&gt;&lt;/font&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　删除字符串尾部的空格&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTRTRIM('COMMENT')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;ROUND(EXP1,EXP2)&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;小数点右边的第&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;位置处开始的四舍五入值&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTROUND(2345.6789,2)FROMBSEMPMS&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;REPLACE(EXP1,EXP2,EXP3)&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　用&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP3&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;替代&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;中所有的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCHAR(REPLACE('ROMANDD','NDD','CCB'),10)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;REPEAT(EXP1,EXP2)&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;重复&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;次后的字符串&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTCHAR(REPEAT('REPEAT',3),21)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;REAL()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个数值的单精度浮点数表示&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTREAL(10)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman"&gt;&lt;b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;RAND&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;()&lt;/span&gt;&lt;/font&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;0&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;和&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;之间的随机浮点数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTRAND()FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;POWER(EXP1,EXP2)&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;次幂&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTPOWER(2,5)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman"&gt;&lt;b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;POSSTR&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;(EXP1,EXP2)&lt;/span&gt;&lt;/font&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;在&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;中的位置&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECT('ABCDEFGH','D')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Times New Roman"&gt;&lt;b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;NULLIF&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;(EXP1,EXP2)&lt;/span&gt;&lt;/font&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　如果&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1=EXP2,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;则为&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;NULL,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;否则为&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;NODENUMBER()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回行的分区号&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTNODENUMBER(EMP_NO)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;MONTH()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个数值的月部分&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTMONTH('2003/10/20')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;MOD(EXP1,EXP2)&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP1&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;除以&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP2&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;的余数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTMOD(20,8)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;MINUTE()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个数值的分钟部分&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTMINUTE('18:34:23')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;LTRIM()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　删除字符串前面的空格&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTLTRIM('CDDD')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;HOUR()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个数值的小时部分&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTHOUR('18:34:23')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;DOUBLE()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　如果参数是一个数字表达式&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;返回与其相对应的浮点数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;如果参数是字符串表达式&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;,&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;则返回该数的字符串表达式&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTDOUBLE('5678')FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;EXP()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回参数的指数函数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTEXP(2)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;FLOAT()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个数的浮点表示&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTFLOAT(789)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;FLOOR()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回小于或等于参数的最大整数&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SLECTFLOOR(88.93)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;HEX()&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　返回一个表示为字符串的值的&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;16&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;进制表示&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;span lang=ZH-CN style="font-size:11.5pt;color:black;font-family:宋体"&gt;　　&lt;/span&gt;&lt;span style="font-size:11.5pt;color:black;font-family:ˎ̥"&gt;&lt;font face="Times New Roman"&gt;SELECTHEX(16)FROMBSEMPMS;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2036299113152677942&amp;page=RSS%3a+DB2%e5%87%bd%e6%95%b0%e5%a4%a7%e5%85%a8&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=sunmoonking.spaces.live.com&amp;amp;GT1=sunmoonking"&gt;</description><comments>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!739.entry#comment</comments><guid isPermaLink="true">http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!739.entry</guid><pubDate>Wed, 24 Jan 2007 08:45:41 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!739/comments/feed.rss</wfw:commentRss><wfw:comment>http://sunmoonking.spaces.live.com/Blog/cns!E3BD9CBED01777CA!739.entry#comment</wfw:comment><dcterms:modified>2007-02-13T06:01:58Z</dcterms:modified></item></channel></rss>