<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: How Do I Generate SQL?</title>
	<atom:link href="http://oraqa.com/2007/01/28/how-do-i-generate-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2007/01/28/how-do-i-generate-sql/</link>
	<description>Oracle Question and Answer</description>
	<pubDate>Tue, 06 Jan 2009 11:45:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Eddie Awad</title>
		<link>http://oraqa.com/2007/01/28/how-do-i-generate-sql/comment-page-1/#comment-201</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Mon, 29 Jan 2007 06:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2007/01/28/how-do-i-generate-sql/#comment-201</guid>
		<description>You do not need PL/SQL for this. You can easily do it by spooling the output of the following query:

&lt;pre&gt;
SELECT 'GRANT ' &#124;&#124; 
    privilege &#124;&#124; 
    ' ON ' &#124;&#124; 
    TABLE_NAME &#124;&#124; 
    ' TO ' &#124;&#124; 
    grantee &#124;&#124; ';'
FROM user_tab_privs
ORDER BY TABLE_NAME,
  privilege;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>You do not need PL/SQL for this. You can easily do it by spooling the output of the following query:</p>
<pre>
SELECT 'GRANT ' ||
    privilege ||
    ' ON ' ||
    TABLE_NAME ||
    ' TO ' ||
    grantee || ';'
FROM user_tab_privs
ORDER BY TABLE_NAME,
  privilege;
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
