<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Eddie Awad’s Blog - Latest Comments in 3 Useful SQL*Plus Tips</title><link>http://awads.disqus.com/</link><description>News, views, tips and tricks on Oracle and other fun stuff</description><atom:link href="https://awads.disqus.com/3_useful_sqlplus_tips/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 27 Mar 2007 02:55:36 -0000</lastBuildDate><item><title>Re: 3 Useful SQL*Plus Tips</title><link>http://awads.net/wp/2007/03/25/3-useful-sqlplus-tips/#comment-3659095</link><description>&lt;p&gt;Thanks for the tips.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fahd Mirza</dc:creator><pubDate>Tue, 27 Mar 2007 02:55:36 -0000</pubDate></item><item><title>Re: 3 Useful SQL*Plus Tips</title><link>http://awads.net/wp/2007/03/25/3-useful-sqlplus-tips/#comment-3659094</link><description>&lt;p&gt;John, you may also want to take a look at &lt;a href="http://snipurl.com/19937" rel="nofollow noopener" target="_blank" title="http://snipurl.com/19937"&gt;REGEXP_REPLACE&lt;/a&gt;, it is powerful and can be very helpful.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;As I understand it, the idea behind the Q- quoting mechanism is to minimize confusion and maximize readability when dealing with string literals that may have lots of single-quoting in them. The Q- quoting mechanism was only introduced in 10gR2. So, &lt;a href="http://awads.net/wp/2006/05/09/whats-new-is-important/" rel="nofollow noopener" target="_blank" title="http://awads.net/wp/2006/05/09/whats-new-is-important/"&gt;whatâ€™s new is important&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Mon, 26 Mar 2007 15:48:03 -0000</pubDate></item><item><title>Re: 3 Useful SQL*Plus Tips</title><link>http://awads.net/wp/2007/03/25/3-useful-sqlplus-tips/#comment-3659093</link><description>&lt;p&gt;I'd never seen the Q quoting mechanism, thanks for pointing it out.  I've written some generators and gotten SO confused quoting quotes.  I wrote some helper functions - one, oddly enough, is called Q, and simply puts single quotes around any string.  So instead of: 'title:=''My Title'';'  I write 'title:='||q('My Title')||';'  This looks more complicated in the example, but when you have lots of this stuff, it winds up more readable.  I also use REPLACE a lot.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Flack</dc:creator><pubDate>Mon, 26 Mar 2007 10:05:05 -0000</pubDate></item></channel></rss>