<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>椰子Java</title> 
<link>http:///index.php</link> 
<description>       我从事软件行业已经9年啦，2001毕业以后一直在成都从事软件开发工作，从事过电信行业相关软件开发和航空行业相关软件开发工作，2007回到了海南，回到了我的故乡。                                                                                                                                我经历了喜欢--狂热--疲倦--坚持--深爱上我的行业，因为它最体现我的价值。我对它了解越深就越能感觉到它的奇妙性，我可以在它虚拟出来的世界里任意翱翔。。。</description> 
<language>zh-cn</language> 
<copyright>Powered by Bo-blog 2.0.2 sp1</copyright>
<item>
<link>http:///read.php?823</link>
<title>将图片存放到PostGreSql的Java方法</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>By PostgreSQL</category>
<pubDate>Tue, 10 Jun 2008 03:09:43 +0000</pubDate> 
<guid>http:///read.php?823</guid> 
<description>
<![CDATA[ 
	<a href="attachment/200806/1213067360_0.rar">点击这里下载文件</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?698</link>
<title>Money数据格式</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>By PostgreSQL</category>
<pubDate>Sat, 22 Dec 2007 14:16:23 +0000</pubDate> 
<guid>http:///read.php?698</guid> 
<description>
<![CDATA[ 
	CREATE TABLE employee (<br/>ID &nbsp; &nbsp; &nbsp; &nbsp; int,<br/>name &nbsp; &nbsp; &nbsp; varchar(10),<br/>salary &nbsp; &nbsp; real,<br/>start_date date,<br/>city &nbsp; &nbsp; &nbsp; varchar(10),<br/>region &nbsp; &nbsp; char(1)<br/>);<br/><br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region) values (1, &nbsp;'Jason', 40420, &nbsp;'02/01/94', 'New York', 'W');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (2, &nbsp;'Robert',14420, &nbsp;'01/02/95', 'Vancouver','N');<br/><br/>SELECT salary * 100 AS New_Salary,to_char(salary * 100, '$99,999,999.9999999') AS monetary, translate(to_char(salary * 100, '$99,999,999.9999999'),' ','') AS translated FROM employee ;<br/><br/>显示不同货币不同格式。<br/>Tags - <a href="http:///tag.php?tag=postgresql" rel="tag">postgresql</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?696</link>
<title>PostGreSQL基础：比较String</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>By PostgreSQL</category>
<pubDate>Tue, 18 Dec 2007 00:55:11 +0000</pubDate> 
<guid>http:///read.php?696</guid> 
<description>
<![CDATA[ 
	PostGreSQL提供了一个非常有意思的函数：substr<br/><br/>例如：<br/><br/>SELECT name FROM employee WHERE substr(name, 1, 1) < 'D';<br/><br/>以上的意思是：name字段1个字母开始到第1个字母结束的的字符串和'D'比较，显示小于D的部分。也就是说只显示开头是a,b,c的内容。<br/>Tags - <a href="http:///tag.php?tag=postgresql" rel="tag">postgresql</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?695</link>
<title>PostGreSQL基础：游标的使用</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>By PostgreSQL</category>
<pubDate>Mon, 17 Dec 2007 00:39:58 +0000</pubDate> 
<guid>http:///read.php?695</guid> 
<description>
<![CDATA[ 
	完整例子：<br/><br/><br/>建表：<br/><br/>CREATE TABLE employee (<br/>ID &nbsp; &nbsp; &nbsp; &nbsp; int,<br/>name &nbsp; &nbsp; &nbsp; varchar(10),<br/>salary &nbsp; &nbsp; real,<br/>start_date date,<br/>city &nbsp; &nbsp; &nbsp; varchar(10),<br/>region &nbsp; &nbsp; char(1)<br/>);<br/><br/>加入数据：<br/><br/><br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (1, &nbsp;'Jason', 40420, &nbsp;'02/01/94', 'New York', 'W');<br/> insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (2, &nbsp;'Robert',14420, &nbsp;'01/02/95', 'Vancouver','N');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (3, &nbsp;'Celia', 24020, &nbsp;'12/03/96', 'Toronto', &nbsp;'W');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (4, &nbsp;'Linda', 40620, &nbsp;'11/04/97', 'New York', 'N');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (5, &nbsp;'David', 80026, &nbsp;'10/05/98', 'Vancouver','W');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (6, &nbsp;'James', 70060, &nbsp;'09/06/99', 'Toronto', &nbsp;'N');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (7, &nbsp;'Alison',90620, &nbsp;'08/07/00', 'New York', 'W');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (8, &nbsp;'Chris', 26020, &nbsp;'07/08/01', 'Vancouver','N');<br/>insert into employee (ID, name, &nbsp; &nbsp;salary, start_date, city, &nbsp; &nbsp; &nbsp; region)values (9, &nbsp;'Mary', &nbsp;60020, &nbsp;'06/09/02', 'Toronto', &nbsp;'W');<br/><br/>开始实验：<br/><br/>begin work;<br/>DECLARE all_employees CURSOR FOR SELECT * FROM employee;<br/>-- Fetching rows from a cursor<br/>FETCH 4 FROM all_employees;<br/>FETCH NEXT FROM all_employees;<br/>commit work;<br/><br/>从以上例子可以看出，FETCH NEXT是取得最后一条的，而FETCH 4是取得前四条的。<br/><br/>Tags - <a href="http:///tag.php?tag=postgresql" rel="tag">postgresql</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?670</link>
<title>PostgreSQL支持Boolean型数据</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>By PostgreSQL</category>
<pubDate>Tue, 13 Nov 2007 16:01:37 +0000</pubDate> 
<guid>http:///read.php?670</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp; PostgreSQL是支持Boolean型数据格式的。<br/><br/> &nbsp; 例如：<br/><br/> &nbsp; CREATE TABLE test1 (a boolean, b text); &nbsp; &nbsp;<br/> &nbsp; &nbsp;INSERT INTO test1 VALUES (TRUE, 'sic est');<br/> &nbsp; &nbsp;INSERT INTO test1 VALUES (FALSE, 'non est');<br/><br/> &nbsp; &nbsp; &nbsp;但是这里要提醒开发者的是，在PostgreSQL提供的JDBC中对Boolean型数据变量支持是比较弱的，需要认真阅读以后才可以使用，有很多情况是被禁止使用的。<br/><br/><br/> &nbsp; &nbsp;SELECT * FROM test1 WHERE NOT a;<br/><br/> &nbsp; &nbsp; &nbsp;结果就会只出现false的值，Not代表false.<br/><br/>Tags - <a href="http:///tag.php?tag=postgresql" rel="tag">postgresql</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?668</link>
<title>关于PostgreSQL栏目</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>By PostgreSQL</category>
<pubDate>Sun, 11 Nov 2007 15:43:45 +0000</pubDate> 
<guid>http:///read.php?668</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp; &nbsp; 其实我想建这个栏目很久了，但是由于时间有限，如果我建太多栏目维护起来恐怕不是很方便，所以一直就搁置着，这几天由于朋友的几个电信级别应用找我帮其建议数据库解决方案，我欣然建议他们使用PostgreSQL。我认为如果在Unix下使用，PostgreSQL是最好的中等数据库解决方案。<br/><br/> &nbsp; &nbsp;但是我帮他写具体的建设方案的时候我发现，PostgreSQL对我来说已经有些陌生啦，为了把这个陌生的老朋友找回来，我决定建立这个栏目。
  ]]> 
</description>
</item>
</channel>
</rss>