<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘佳的技术日志、博客]]></title> 
<link>http://www.52zhe.cn/index.php</link> 
<description><![CDATA[技术的事，喜欢就研究。]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘佳的技术日志、博客]]></copyright>
<item>
<link>http://www.52zhe.cn/read.php/.htm</link>
<title><![CDATA[使用sqlplus，在Shell下查询Oracle，用SQL交互。]]></title> 
<author>kook &lt;admin@yourname.com&gt;</author>
<category><![CDATA[SHELL]]></category>
<pubDate>Wed, 12 Mar 2008 08:41:02 +0000</pubDate> 
<guid>http://www.52zhe.cn/read.php/.htm</guid> 
<description>
<![CDATA[ 
	简单试验<br/><br/>脚本内容：<br/><div class="code"><br/>第一个<br/>&#91;oracle@kook bin&#93;$ cat test.sh<br/>sqlplus -S &quot;/ as sysdba&quot; &lt;&lt; !<br/>select to_char(sysdate,&#039;yyyy-mm-dd&#039;) today from dual;<br/>exit;<br/>!<br/>第二个<br/>&#91;oracle@kook bin&#93;$ cat test.sh<br/>sqlplus -S &lt;&lt; !<br/>conn / as sysdba<br/>select to_char(sysdate,&#039;yyyy-mm-dd&#039;) today from dual;<br/>exit;<br/>!<br/><br/></div><br/>这2个输出结果都是一样的，就是下面这个。<br/><div class="code"><br/>&#91;oracle@kook bin&#93;$ ./test.sh<br/><br/>TODAY<br/>----------<br/>2008-03-12<br/></div><br/><br/>有兴趣的可以试验一下去掉参数“-S”试试看。<br/>在用ftp命令时也有类似的对应参数“-n”.<br/><br/><br/>Tags - <a href="http://www.52zhe.cn/go.php/tags/sqlplus/" rel="tag">sqlplus</a> , <a href="http://www.52zhe.cn/go.php/tags/shell/" rel="tag">shell</a> , <a href="http://www.52zhe.cn/go.php/tags/oracle/" rel="tag">oracle</a> , <a href="http://www.52zhe.cn/go.php/tags/sql/" rel="tag">sql</a>
]]>
</description>
</item><item>
<link>http://www.52zhe.cn/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] 使用sqlplus，在Shell下查询Oracle，用SQL交互。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.52zhe.cn/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>