<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 15:08:09 +0000</lastBuildDate>
    <item>
      <title>(PL/SQL) Function to get first record from query and return single value - stews</title>
      <link>https://snipplr.com/view/8460/function-to-get-first-record-from-query-and-return-single-value</link>
      <description>&lt;p&gt;Nothing amazing here, just an efficient way to get the first row.&#13;
&#13;
Be sure to set your ORDER BY clause properly.&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 17:44:32 UTC</pubDate>
      <guid>https://snipplr.com/view/8460/function-to-get-first-record-from-query-and-return-single-value</guid>
    </item>
    <item>
      <title>(PL/SQL) Refresh an Oracle materialized view - stews</title>
      <link>https://snipplr.com/view/8459/refresh-an-oracle-materialized-view</link>
      <description>&lt;p&gt;Just provide your materialized view name.&#13;
&#13;
Not much code here, but I never remember the command for this.&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 17:38:18 UTC</pubDate>
      <guid>https://snipplr.com/view/8459/refresh-an-oracle-materialized-view</guid>
    </item>
    <item>
      <title>(PL/SQL) Record Exists function template - stews</title>
      <link>https://snipplr.com/view/8458/record-exists-function-template</link>
      <description>&lt;p&gt;I often need to know if a record exists in a table.  This method is probably the most efficient.  Too many people don't use the exceptions that Oracle provides, which is a shame.&#13;
&#13;
I think I got it from Tom Kyte's site?  Or Steven Feuerstein?&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 17:36:38 UTC</pubDate>
      <guid>https://snipplr.com/view/8458/record-exists-function-template</guid>
    </item>
    <item>
      <title>(PL/SQL) Efficiently compare results from two queries - stews</title>
      <link>https://snipplr.com/view/8457/efficiently-compare-results-from-two-queries</link>
      <description>&lt;p&gt;This compares selected columns between 2 queries, using the WITH clause.  It lists the rows and values that are different between the two sources.&#13;
&#13;
This is from Tom Kyte (www.asktom.com).  I can't say I understand exactly how it works, but it's much faster than other methods I've seen, because it only looks through each query once.&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 17:33:02 UTC</pubDate>
      <guid>https://snipplr.com/view/8457/efficiently-compare-results-from-two-queries</guid>
    </item>
    <item>
      <title>(PL/SQL) Efficiently compare columns from two tables - stews</title>
      <link>https://snipplr.com/view/8456/efficiently-compare-columns-from-two-tables</link>
      <description>&lt;p&gt;This compares selected columns between 2 tables that you think might have differences.  It lists the rows and values that are different between the two sources&#13;
&#13;
You can add WHERE clauses as appropriate.  You could also use this to compare the results of two queries.&#13;
&#13;
This is from Tom Kyte (www.asktom.com).  I can't say I understand exactly how it works, but it's much faster than other methods I've seen.  It has the advantage of only looking through each table once.&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 17:26:59 UTC</pubDate>
      <guid>https://snipplr.com/view/8456/efficiently-compare-columns-from-two-tables</guid>
    </item>
    <item>
      <title>(PL/SQL) UPDATE using WHERE CURRENT OF clause - stews</title>
      <link>https://snipplr.com/view/8455/update-using-where-current-of-clause</link>
      <description>&lt;p&gt;I can never remember the syntax on the "FOR UPDATE OF" clause!&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 17:16:50 UTC</pubDate>
      <guid>https://snipplr.com/view/8455/update-using-where-current-of-clause</guid>
    </item>
    <item>
      <title>(PL/SQL) INSERT rows from BULK COLLECT with LIMIT clause - stews</title>
      <link>https://snipplr.com/view/8454/insert-rows-from-bulk-collect-with-limit-clause</link>
      <description>&lt;p&gt;Reads rows from a source table using BULK COLLECT and LIMIT, then puts them in another collection (presumably with a different layout structure), then loads them to your destination table.&lt;/p&gt;</description>
      <pubDate>Wed, 17 Sep 2008 17:11:53 UTC</pubDate>
      <guid>https://snipplr.com/view/8454/insert-rows-from-bulk-collect-with-limit-clause</guid>
    </item>
  </channel>
</rss>
