<?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>CrazyHr</title>
	<atom:link href="http://www.crazyhr.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crazyhr.com</link>
	<description>Harry&#039;s blog</description>
	<lastBuildDate>Tue, 27 Mar 2012 06:42:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>connect by层内排序</title>
		<link>http://www.crazyhr.com/2012/03/connect-by%e5%b1%82%e5%86%85%e6%8e%92%e5%ba%8f/</link>
		<comments>http://www.crazyhr.com/2012/03/connect-by%e5%b1%82%e5%86%85%e6%8e%92%e5%ba%8f/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 06:41:40 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[IT资讯]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=588</guid>
		<description><![CDATA[ORDER SIBLINGS BY MENUORDER]]></description>
			<content:encoded><![CDATA[<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ORDER SIBLINGS BY MENUORDER</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2012/03/connect-by%e5%b1%82%e5%86%85%e6%8e%92%e5%ba%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery中处理含有特殊字符的id</title>
		<link>http://www.crazyhr.com/2012/01/jquery%e4%b8%ad%e5%a4%84%e7%90%86%e5%90%ab%e6%9c%89%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e7%9a%84id/</link>
		<comments>http://www.crazyhr.com/2012/01/jquery%e4%b8%ad%e5%a4%84%e7%90%86%e5%90%ab%e6%9c%89%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e7%9a%84id/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 09:52:07 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=575</guid>
		<description><![CDATA[html中是支持某些特殊字符的id，但是jquery不支持 如星号* 但是document.getElementById可以获取到特殊字符id $(document.getElementById(id)) 这样就一步到位搞定了搞定了，直接调用jQuery的函数 如 $(document.getElementById(id)).hide();]]></description>
			<content:encoded><![CDATA[<p><b>html中是支持某些特殊字符的id，但是jquery不支持 如星号*</b></p>
<p><strong>但是document.getElementById可以获取到特殊字符id</strong></p>
<p><b>$(document.getElementById(id))</b></p>
<p>这样就一步到位搞定了搞定了，直接调用jQuery的函数</p>
<p>如 <b>$(document.getElementById(id)).hide();</b></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2012/01/jquery%e4%b8%ad%e5%a4%84%e7%90%86%e5%90%ab%e6%9c%89%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e7%9a%84id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php中 json_encode返回中文为null的解决方法</title>
		<link>http://www.crazyhr.com/2012/01/php%e4%b8%ad-json_encode%e8%bf%94%e5%9b%9e%e4%b8%ad%e6%96%87%e4%b8%banull%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.crazyhr.com/2012/01/php%e4%b8%ad-json_encode%e8%bf%94%e5%9b%9e%e4%b8%ad%e6%96%87%e4%b8%banull%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 06:58:33 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=573</guid>
		<description><![CDATA[在php中使用json_encode居然返回了null，后来才知道应该先进行转码再返回到页面，代码如下： echo json_encode(gbk2utf8($result));&#160; &#160;function gbk2utf8($data){&#160; &#160;if(is_array($data))&#160; {&#160; &#160;return array_map('gbk2utf8', $data); }&#160; return iconv('gbk','utf-8',$data);&#160; }]]></description>
			<content:encoded><![CDATA[<p>在php中使用json_encode居然返回了null，后来才知道应该先进行转码再返回到页面，代码如下： </p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo json_encode(gbk2utf8($result));&nbsp; &nbsp;function gbk2utf8($data){&nbsp; &nbsp;if(is_array($data))&nbsp; {&nbsp; &nbsp;return array_map('gbk2utf8', $data); }&nbsp; return iconv('gbk','utf-8',$data);&nbsp; }</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2012/01/php%e4%b8%ad-json_encode%e8%bf%94%e5%9b%9e%e4%b8%ad%e6%96%87%e4%b8%banull%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于IE6下纵向滚动条影响宽度的bug</title>
		<link>http://www.crazyhr.com/2012/01/%e5%85%b3%e4%ba%8eie6%e4%b8%8b%e7%ba%b5%e5%90%91%e6%bb%9a%e5%8a%a8%e6%9d%a1%e5%bd%b1%e5%93%8d%e5%ae%bd%e5%ba%a6%e7%9a%84bug/</link>
		<comments>http://www.crazyhr.com/2012/01/%e5%85%b3%e4%ba%8eie6%e4%b8%8b%e7%ba%b5%e5%90%91%e6%bb%9a%e5%8a%a8%e6%9d%a1%e5%bd%b1%e5%93%8d%e5%ae%bd%e5%ba%a6%e7%9a%84bug/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 03:17:11 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[web UI]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=570</guid>
		<description><![CDATA[之前遇到这样的bug，很头疼，怎么也搜不到解决方案，无意间找到的解决之法。这次，同事也遇到了这样的问题，便记录下来。 先看问题，代码如下： &#60;style&#62; &#60;!doctype html public &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;title&#62;crazyhr.com&#60;/title&#62; &#60;style&#62; body{margin:0; padding:0} td{background:#66c} &#60;/style&#62; &#60;div style=&#34;width: 100%; height: 200px; overflow: auto&#34;&#62; &#60;table style=&#34;width: 100%; height: 300px&#34;&#62; &#60;tbody&#62; &#60;tr&#62; &#60;td width=&#34;50%&#34;&#62;aaaaaaaa&#60;/td&#62; &#60;td width=&#34;50%&#34;&#62;bbbbbbbbbb&#60;/td&#62; &#60;/tr&#62; &#60;/tbody&#62; &#60;/table&#62; &#60;/div&#62; 标准模式下，IE6会把纵向滚动条的宽度算在内容里，故而出现了横向滚动条，就算横向滚动条设置为隐藏，也是可以“拖动”内容的。 其实只要给内容套一层div，并给div设置高度100%就会解决这个问题了，代码如下： &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;HEAD&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>之前遇到这样的bug，很头疼，怎么也搜不到解决方案，无意间找到的解决之法。这次，同事也遇到了这样的问题，便记录下来。</p>
<p>先看问题，代码如下：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;style&gt;</li>
<li>&lt;!doctype html public &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</li>
<li>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;</li>
<li>&lt;head&gt;</li>
<li>&lt;title&gt;crazyhr.com&lt;/title&gt;</li>
<li>&lt;style&gt;</li>
<li>body{margin:0; padding:0}</li>
<li>td{background:#66c}</li>
<li>&lt;/style&gt; &lt;div style=&quot;width: 100%; height: 200px; overflow: auto&quot;&gt; &lt;table style=&quot;width: 100%; height: 300px&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width=&quot;50%&quot;&gt;aaaaaaaa&lt;/td&gt; &lt;td width=&quot;50%&quot;&gt;bbbbbbbbbb&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt;</li></ol></div>
<p>标准模式下，IE6会把纵向滚动条的宽度算在内容里，故而出现了横向滚动条，就算横向滚动条设置为隐藏，也是可以“拖动”内容的。</p>
<p>其实只要给内容套一层div，并给div设置高度100%就会解决这个问题了，代码如下：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;HEAD&gt; &lt;TITLE&gt;crazyhr.com&lt;/TITLE&gt; &lt;style&gt;</li>
<li>body{margin:0; padding:0}</li>
<li>td{background:#66C}</li>
<li>&lt;/style&gt; &lt;/HEAD&gt; &lt;BODY&gt; &lt;div style=&quot;width:100%; height:200px; overflow:auto&quot;&gt; &lt;div id=&quot;fix_ie6&quot; style=&quot;height:100%&quot;&gt; &lt;table style=&quot;width:100%; height:300px&quot;&gt; &lt;tr&gt; &lt;td width=&quot;50%&quot;&gt;aaaaaaaa&lt;/td&gt; &lt;td width=&quot;50%&quot;&gt;bbbbbbbbbb&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;div&gt; &lt;/div&gt; &lt;/BODY&gt; &lt;/HTML&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2012/01/%e5%85%b3%e4%ba%8eie6%e4%b8%8b%e7%ba%b5%e5%90%91%e6%bb%9a%e5%8a%a8%e6%9d%a1%e5%bd%b1%e5%93%8d%e5%ae%bd%e5%ba%a6%e7%9a%84bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ibatis/Oracle 笔记</title>
		<link>http://www.crazyhr.com/2011/11/ibatisoracle-%e7%ac%94%e8%ae%b0/</link>
		<comments>http://www.crazyhr.com/2011/11/ibatisoracle-%e7%ac%94%e8%ae%b0/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 08:48:51 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[笔记]]></category>
		<category><![CDATA[ibatis]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=560</guid>
		<description><![CDATA[根据level添加空格作为下拉菜单 SELECT&#160; T.CONSTCODE,&#160; CASE MENULEVEL&#160; WHEN 2 THEN ' ' &#124;&#124; T.CONSTDESC&#160; WHEN 3 THEN ' ' &#124;&#124; T.CONSTDESC&#160; WHEN 4 THEN ' ' &#124;&#124; T.CONSTDESC&#160; WHEN 5 THEN ' ' &#124;&#124; T.CONSTDESC&#160; ELSE T.CONSTDESC END CONSTDESC,&#160; CONSTEXT3&#160; FROM VW_REPORTINDEXWB T &#160; ibatis数组作为条件，自动拼装 &#60;iterate prepend=&#34;AND&#34; property=&#34;catarray&#34; open=&#34;(&#34; close=&#34;)&#34; conjunction=&#34;OR&#34;&#62; T1.REPORTCATEGORY = #catarray[]# &#60;/iterate&#62;]]></description>
			<content:encoded><![CDATA[<p>根据level添加空格作为下拉菜单</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">SELECT&nbsp; T.CONSTCODE,&nbsp; CASE MENULEVEL&nbsp; 	WHEN 2 THEN ' ' || T.CONSTDESC&nbsp; 	WHEN 3 THEN ' ' || T.CONSTDESC&nbsp; 	WHEN 4 THEN ' ' || T.CONSTDESC&nbsp; 	WHEN 5 THEN ' ' || T.CONSTDESC&nbsp; 	ELSE T.CONSTDESC END CONSTDESC,&nbsp; CONSTEXT3&nbsp; FROM VW_REPORTINDEXWB T</li></ol></div>
<p>&#160;</p>
<p>ibatis数组作为条件，自动拼装</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;iterate prepend=&quot;AND&quot; property=&quot;catarray&quot; open=&quot;(&quot; close=&quot;)&quot; conjunction=&quot;OR&quot;&gt; T1.REPORTCATEGORY = #catarray[]# &lt;/iterate&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2011/11/ibatisoracle-%e7%ac%94%e8%ae%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle补充</title>
		<link>http://www.crazyhr.com/2011/11/oracle%e8%a1%a5%e5%85%85/</link>
		<comments>http://www.crazyhr.com/2011/11/oracle%e8%a1%a5%e5%85%85/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 05:56:04 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PC技术]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=552</guid>
		<description><![CDATA[&#160;&#160; 添加字段 ALTER TABLE gt_user_base ADD usertype varchar2(8) DEFAULT 0 not null; 增加注释 comment on column gt_user_base.id is '主键ID'; 查询default默认值 SELECT a.COLUMN_NAME,a.DATA_DEFAULT FROM user_tab_columns a WHERE a.TABLE_NAME = 'GT_USER_BASE'; 修改默认值 alter table gt_user_base modify(usertype default 0); 修改字段名称 alter table gt_user_base rename column id to newid; 删除字段 alter table gt_user_base drop (ttst); 查询树状结构 SELECT T.CATEGORYCODE, LEVEL [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160; 添加字段</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ALTER TABLE gt_user_base ADD usertype varchar2(8) DEFAULT 0 not null;</li></ol></div>
<p>增加注释</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">comment on column gt_user_base.id is '主键ID';</li></ol></div>
<p>查询default默认值</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">SELECT a.COLUMN_NAME,a.DATA_DEFAULT FROM user_tab_columns a WHERE a.TABLE_NAME = 'GT_USER_BASE';</li></ol></div>
<p>修改默认值</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">alter table gt_user_base modify(usertype default 0);</li></ol></div>
<p>修改字段名称</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">alter table gt_user_base rename column id to newid;</li></ol></div>
<p>删除字段</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">alter table gt_user_base drop (ttst);</li></ol></div>
<p>查询树状结构</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">SELECT T.CATEGORYCODE, LEVEL CATEGORYLEVEL, CATEGORYNAME</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp;FROM (SELECT T1.CATEGORYCODE,</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T2.CONSTDESC CATEGORYNAME,</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T1.PARENTCODE,</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T1.REPORTTYPE,</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T1.MENUCODE</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FROM BACK_REPORTMENU_CATEGORY T1, CNT_SYSTEM T2</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE T1.CATEGORYCODE = T2.CONSTCODE</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND T2.TYPECODE = 900003</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- AND T1.MENUCODE= #menucode#</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;) T</li>
<li>&nbsp;</li>
<li>CONNECT BY PRIOR T.CATEGORYCODE = t.PARENTCODE</li>
<li>START WITH t.PARENTCODE = 0</li>
<li>&nbsp;</li>
<li>&nbsp;&nbsp; &nbsp; ORDER SIBLINGS BY TO_CHAR(T.CATEGORYCODE)</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2011/11/oracle%e8%a1%a5%e5%85%85/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>oracle关于表的操作</title>
		<link>http://www.crazyhr.com/2011/11/oracle%e5%85%b3%e4%ba%8e%e8%a1%a8%e7%9a%84%e6%93%8d%e4%bd%9c/</link>
		<comments>http://www.crazyhr.com/2011/11/oracle%e5%85%b3%e4%ba%8e%e8%a1%a8%e7%9a%84%e6%93%8d%e4%bd%9c/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 02:02:09 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=547</guid>
		<description><![CDATA[创建表 create table gt_user_base ( id&#160; &#160; &#160; &#160;number not null, userid&#160; &#160;varchar2(18) not null, username varchar2(18), password varchar2(18), ); 删除表 drop table gt_user_base; 默认值 日期 alter table gt_user_base modify regdate default sysdate; 插入记录 insert into gt_user_base(id,userid,username,password) values(gt_user_sequence.nextval,'00001','nameee','passssswd'); Sequence create sequence gt_user_sequence INCREMENT BY 1 START WITH 0000001 NOMAXVALUE NOCYCLE 更改数据 update&#160; gt_user_base a set [...]]]></description>
			<content:encoded><![CDATA[<p>创建表</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">create table gt_user_base</li>
<li>(</li>
<li>id&nbsp; &nbsp; &nbsp; &nbsp;number not null,</li>
<li>userid&nbsp; &nbsp;varchar2(18) not null,</li>
<li>username varchar2(18),</li>
<li>password varchar2(18),</li>
<li>);</li></ol></div>
<p>删除表</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">drop table gt_user_base;</li></ol></div>
<p>默认值 日期</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">alter table gt_user_base modify regdate default sysdate;</li></ol></div>
<p>插入记录</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">insert into gt_user_base(id,userid,username,password) values(gt_user_sequence.nextval,'00001','nameee','passssswd');</li></ol></div>
<p>Sequence</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">create sequence gt_user_sequence INCREMENT BY 1 START WITH 0000001 NOMAXVALUE NOCYCLE</li></ol></div>
<p>更改数据</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">update&nbsp; gt_user_base a set a.userlevel = 1 WHERE a.id =&nbsp; 100000022;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2011/11/oracle%e5%85%b3%e4%ba%8e%e8%a1%a8%e7%9a%84%e6%93%8d%e4%bd%9c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>oracle创建命名空间和新用户</title>
		<link>http://www.crazyhr.com/2011/11/oracle%e5%88%9b%e5%bb%ba%e5%91%bd%e5%90%8d%e7%a9%ba%e9%97%b4%e5%92%8c%e6%96%b0%e7%94%a8%e6%88%b7/</link>
		<comments>http://www.crazyhr.com/2011/11/oracle%e5%88%9b%e5%bb%ba%e5%91%bd%e5%90%8d%e7%a9%ba%e9%97%b4%e5%92%8c%e6%96%b0%e7%94%a8%e6%88%b7/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 01:47:32 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=544</guid>
		<description><![CDATA[Oracle安装完后，其中有一个缺省的数据库，除了这个缺省的数据库外，我们还可以创建自己的数据库。 为了避免麻烦，可以用&#8217;Database Configuration Assistant&#8217;向导来创建数据库(这步一定要创建好，因为这里没有做好，会在创建表空间时出错&#8212;我就在这里花了几个小时，晕)。 创建完数据库后，并不能立即在数据库中建表，必须先创建该数据库的用户，并且为该用户指定表空间。 下面是创建数据库用户的具体过程： 1.假如现在已经建好名为&#8217;test&#8217;的数据库，此时在d:\oracle\oradata\目录下已经存在test目录（注意：我的Oracle11g安装在d:\oracle下，若你的Oracle安装在别的目录，那么你新建的数据库目录就在*\oradata\目录下）。 2.在创建用户之前，先要创建表空间： 其格式为：格式: create tablespace 表间名 datafile &#8216;数据文件名&#8217; size 表空间大小; 如： 　　SQL&#62; create tablespace test_tablespace datafile &#8216;d:\oracle\oradata\test\test.dbf&#8217; size 100M; 其中&#8217;test_tablespace&#8217;是你自定义的表空间名称，可以任意取名； &#8216;d:\oracle\oradata\test\test.dbf&#8217;是数据文件的存放位置，&#8217;test.dbf&#8217;文件名也是任意取； &#8216;size 100M&#8217;是指定该数据文件的大小，也就是表空间的大小。 删除命名空间 DROP TABLESPACE test INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS; 3.现在建好了名为&#8217;test_tablespace&#8217;的表空间，下面就可以创建用户了： 其格式为：格式: create user 用户 名 identified by 密码 default tablespace 表空间表; 如： 　　SQL&#62; create user [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle安装完后，其中有一个缺省的数据库，除了这个缺省的数据库外，我们还可以创建自己的数据库。</p>
<p>为了避免麻烦，可以用&#8217;Database Configuration Assistant&#8217;向导来创建数据库(这步一定要创建好，因为这里没有做好，会在创建表空间时出错&#8212;我就在这里花了几个小时，晕)。</p>
<p>创建完数据库后，并不能立即在数据库中建表，必须先创建该数据库的用户，并且为该用户指定表空间。</p>
<p>下面是创建数据库用户的具体过程：</p>
<p>1.假如现在已经建好名为&#8217;test&#8217;的数据库，此时在d:\oracle\oradata\目录下已经存在test目录（注意：我的Oracle11g安装在d:\oracle下，若你的Oracle安装在别的目录，那么你新建的数据库目录就在*\oradata\目录下）。</p>
<p>2.在创建用户之前，先要创建表空间：</p>
<p>其格式为：格式: create tablespace 表间名 datafile &#8216;数据文件名&#8217; size 表空间大小;</p>
<p>如： 　　SQL&gt; create tablespace test_tablespace datafile &#8216;d:\oracle\oradata\test\test.dbf&#8217; size 100M;</p>
<p>其中&#8217;test_tablespace&#8217;是你自定义的表空间名称，可以任意取名；</p>
<p>&#8216;d:\oracle\oradata\test\test.dbf&#8217;是数据文件的存放位置，&#8217;test.dbf&#8217;文件名也是任意取；</p>
<p>&#8216;size 100M&#8217;是指定该数据文件的大小，也就是表空间的大小。</p>
<p>删除命名空间</p>
<pre id="content-12262668">DROP TABLESPACE test INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS;</pre>
<p>3.现在建好了名为&#8217;test_tablespace&#8217;的表空间，下面就可以创建用户了：</p>
<p>其格式为：格式: create user 用户 名 identified by 密码 default tablespace 表空间表;</p>
<p>如： 　　SQL&gt; create user testone identified by testone default tablespace test_tablespace;</p>
<p>默认表空间&#8217;default tablespace&#8217;使用上面创建的表空间。</p>
<p>4.接着授权给新建的用户：</p>
<p>SQL&gt; grant connect，resource to testone; &#8211;表示把 connect，resource权限授予testone用户</p>
<p>SQL&gt; grant dba to testone; &#8211;表示把 dba权限授予给testone用户 　　授权成功。</p>
<p>ok! 数据库用户创建完成，现在你就可以使用该用户创建数据表了！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2011/11/oracle%e5%88%9b%e5%bb%ba%e5%91%bd%e5%90%8d%e7%a9%ba%e9%97%b4%e5%92%8c%e6%96%b0%e7%94%a8%e6%88%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>获取下拉菜单的显示文本</title>
		<link>http://www.crazyhr.com/2011/11/%e8%8e%b7%e5%8f%96%e4%b8%8b%e6%8b%89%e8%8f%9c%e5%8d%95%e7%9a%84%e6%98%be%e7%a4%ba%e6%96%87%e6%9c%ac/</link>
		<comments>http://www.crazyhr.com/2011/11/%e8%8e%b7%e5%8f%96%e4%b8%8b%e6%8b%89%e8%8f%9c%e5%8d%95%e7%9a%84%e6%98%be%e7%a4%ba%e6%96%87%e6%9c%ac/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 07:48:12 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=540</guid>
		<description><![CDATA[khmc.value= kh_id.options[kh_id.selectedIndex].innerText;//获取显示的文本]]></description>
			<content:encoded><![CDATA[<p>khmc.value= kh_id.options[kh_id.selectedIndex].innerText;//获取显示的文本</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2011/11/%e8%8e%b7%e5%8f%96%e4%b8%8b%e6%8b%89%e8%8f%9c%e5%8d%95%e7%9a%84%e6%98%be%e7%a4%ba%e6%96%87%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java 附件下载 或 直接打开 response.setHeader</title>
		<link>http://www.crazyhr.com/2011/11/java-%e9%99%84%e4%bb%b6%e4%b8%8b%e8%bd%bd-%e6%88%96-%e7%9b%b4%e6%8e%a5%e6%89%93%e5%bc%80/</link>
		<comments>http://www.crazyhr.com/2011/11/java-%e9%99%84%e4%bb%b6%e4%b8%8b%e8%bd%bd-%e6%88%96-%e7%9b%b4%e6%8e%a5%e6%89%93%e5%bc%80/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 09:28:12 +0000</pubDate>
		<dc:creator>hr</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.crazyhr.com/?p=538</guid>
		<description><![CDATA[点击会提供对话框选择另存为： response.setHeader( “Content-Disposition “, “attachment;filename= “+filename); 通过IE浏览器直接选择相关应用程序插件打开： response.setHeader( “Content-Disposition “, “inline;filename= “+fliename) 下载前询问（是打开文件还是保存到计算机） response.setHeader( “Content-Disposition “, “filename= “+filename);]]></description>
			<content:encoded><![CDATA[<p>点击会提供对话框选择另存为：<br />
response.setHeader( “Content-Disposition “, “attachment;filename= “+filename); </p>
<p>通过IE浏览器直接选择相关应用程序插件打开：<br />
response.setHeader( “Content-Disposition “,   “inline;filename= “+fliename)   </p>
<p>下载前询问（是打开文件还是保存到计算机）<br />
response.setHeader( “Content-Disposition “, “filename= “+filename);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazyhr.com/2011/11/java-%e9%99%84%e4%bb%b6%e4%b8%8b%e8%bd%bd-%e6%88%96-%e7%9b%b4%e6%8e%a5%e6%89%93%e5%bc%80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

