<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《诡异dblink问题解决&#8211;dblink insert操作数据类型发生改变》的评论</title>
	<atom:link href="https://www.xifenfei.com/2012/01/%e8%af%a1%e5%bc%82dblink%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3-dblink-insert%e6%93%8d%e4%bd%9c%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e5%8f%91%e7%94%9f%e6%94%b9%e5%8f%98.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2012/01/%e8%af%a1%e5%bc%82dblink%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3-dblink-insert%e6%93%8d%e4%bd%9c%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e5%8f%91%e7%94%9f%e6%94%b9%e5%8f%98.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：惜 分飞</title>
		<link>https://www.xifenfei.com/2012/01/%e8%af%a1%e5%bc%82dblink%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3-dblink-insert%e6%93%8d%e4%bd%9c%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e5%8f%91%e7%94%9f%e6%94%b9%e5%8f%98.html/comment-page-1#comment-613</link>
		<dc:creator><![CDATA[惜 分飞]]></dc:creator>
		<pubDate>Fri, 13 Jan 2012 02:11:01 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=2359#comment-613</guid>
		<description><![CDATA[直接cast也正常
[sql]SQL&gt; CREATE table t_xifenfei
  2      AS
  3      select t.inst_id as ID,
  4             case to_char(w.status)
  5               when &#039;0&#039; then
  6                4
  7               when &#039;2&#039; then
  8                3
  9               else
 10               1
 11           end as  status_new,
 12            p.name as PACKAGE_NAME
 13       from wf_proc_inst@oldmoa i
 14       left join wf_proc_info_inst@oldmoa t on t.inst_id = i.id
 15      left join wf_proc_type@oldmoa p on t.type_id = p.id
 16      left join wf_proc_inst@oldmoa w on t.inst_id = w.id
 17      where t.inst_id = i.id
 18        and t.proc_id &lt;&gt; 53
 19        and t.is_ok = 1
 20        AND t.inst_id &lt;= 4837 
 21        AND t.inst_id&gt;=4735;

Table created.

SQL&gt; select * from t_xifenfei;

        ID STATUS_NEW PACKAGE_NAME
---------- ---------- --------------------------------
      4755          3 呈批处理
      4836          3 公文处理
[/sql]]]></description>
		<content:encoded><![CDATA[<p>直接cast也正常</p>
<pre class="brush: sql; title: ; notranslate">SQL&gt; CREATE table t_xifenfei
  2      AS
  3      select t.inst_id as ID,
  4             case to_char(w.status)
  5               when '0' then
  6                4
  7               when '2' then
  8                3
  9               else
 10               1
 11           end as  status_new,
 12            p.name as PACKAGE_NAME
 13       from wf_proc_inst@oldmoa i
 14       left join wf_proc_info_inst@oldmoa t on t.inst_id = i.id
 15      left join wf_proc_type@oldmoa p on t.type_id = p.id
 16      left join wf_proc_inst@oldmoa w on t.inst_id = w.id
 17      where t.inst_id = i.id
 18        and t.proc_id &lt;&gt; 53
 19        and t.is_ok = 1
 20        AND t.inst_id &lt;= 4837 
 21        AND t.inst_id&gt;=4735;

Table created.

SQL&gt; select * from t_xifenfei;

        ID STATUS_NEW PACKAGE_NAME
---------- ---------- --------------------------------
      4755          3 呈批处理
      4836          3 公文处理
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
