<?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>tyson記事本 &#187; SQL</title>
	<atom:link href="http://blog.tcchen.org/archives/category/2database/sql/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.tcchen.org</link>
	<description>Google &#38; man(Unix) are your best friends!</description>
	<lastBuildDate>Thu, 16 Apr 2009 04:33:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>亂數取記錄</title>
		<link>http://blog.tcchen.org/archives/77</link>
		<comments>http://blog.tcchen.org/archives/77#comments</comments>
		<pubDate>Fri, 02 Feb 2007 05:45:10 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/77</guid>
		<description><![CDATA[selecting random record.
select employees,name from
(select employees,name from usertable order by dbms_random.value)
where rownum < = 5
update: ref: http://forums.oracle.com/
]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/77/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can one drop a column from a table?</title>
		<link>http://blog.tcchen.org/archives/59</link>
		<comments>http://blog.tcchen.org/archives/59#comments</comments>
		<pubDate>Fri, 30 Dec 2005 03:29:53 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/59</guid>
		<description><![CDATA[Can one drop a column from a table?
Can one drop a column from a table?From Oracle8i one can DROP a column from a table. Look at this sample script, demonstrating the ALTER TABLE table_name DROP COLUMN column_name; command.
Other workarounds: 1. SQL> update t1 set column_to_drop = NULL;
SQL> rename t1 to t1_base;
SQL> create view t1 as [...]]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/59/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>取重複值</title>
		<link>http://blog.tcchen.org/archives/28</link>
		<comments>http://blog.tcchen.org/archives/28#comments</comments>
		<pubDate>Wed, 12 Jan 2005 04:32:01 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/28</guid>
		<description><![CDATA[
select * from global_dept group by dept_no,dept_name having count(dept_name)>1


]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/28/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
