<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RECORD/工作记录 &#8211; 登封帮</title>
	<atom:link href="http://dengfengbang.com/category/working/record/feed/" rel="self" type="application/rss+xml" />
	<link>http://dengfengbang.com</link>
	<description>一个说话给你听的网页</description>
	<lastBuildDate>Tue, 10 Nov 2020 06:52:33 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.11</generator>

<image>
	<url>http://dengfengbang.com/wp-content/uploads/2020/03/cropped-uugai.com_1585616991231-1-32x32.png</url>
	<title>RECORD/工作记录 &#8211; 登封帮</title>
	<link>http://dengfengbang.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>NC6X删除下级科目方式</title>
		<link>http://dengfengbang.com/2020/11/10/nc6x%e5%88%a0%e9%99%a4%e4%b8%8b%e7%ba%a7%e7%a7%91%e7%9b%ae%e6%96%b9%e5%bc%8f/</link>
		
		<dc:creator><![CDATA[yukey208]]></dc:creator>
		<pubDate>Tue, 10 Nov 2020 06:48:46 +0000</pubDate>
				<category><![CDATA[DOCUMENT/文档收集]]></category>
		<category><![CDATA[RECORD/工作记录]]></category>
		<guid isPermaLink="false">http://dengfengbang.com/?p=289</guid>

					<description><![CDATA[NC6X会计科目增加下级科目后删除脚本。一下由网友提供。 方案说明: select * from bd_acc [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>NC6X会计科目增加下级科目后删除脚本。一下由网友提供。</p>
<p>方案说明:<br />
select * from bd_account where code like &#8216;上级编码%&#8217; ;<br />
// 记录上下级科目的pk_account，如果有多个的话，请通过pk_accchart区分<br />
// 将下级科目的主键进行异化，将主键让出来给上级，1001和@@@@可以根据实际情况修改<br />
update bd_accasoa set name2=pk_accasoa, pk_accasoa = replace(pk_accasoa,&#8217;1001&#8242;,&#8217;@@@@&#8217;) where pk_account=&#8217;下级pk_account&#8217;;<br />
// 将上级科目的主键恢复成下级科目主键，并修改末级标志<br />
update bd_accasoa set pk_accasoa=(select name2 from bd_accasoa a where a.pk_accchart=bd_accasoa.pk_accchart and a.pk_account=&#8217;下级pk_account&#8217;),endflag=&#8217;Y&#8217; where pk_account=&#8217;上级pk_account&#8217; and exists(select name2 from bd_accasoa a where a.pk_accchart=bd_accasoa.pk_accchart and a.pk_account=&#8217;下级pk_account&#8217;);<br />
//删除下级科目<br />
delete from bd_accasoa where pk_account=&#8217;下级pk_account&#8217;;<br />
delete from bd_account where pk_account=&#8217;下级pk_account&#8217;;<br />
做好备份，测试环境验证通过后执行到正式环境，如有问题请及时反馈！</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
