<?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>That Jeff Smith</title>
	<atom:link href="http://www.thatjeffsmith.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thatjeffsmith.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 14:00:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Sometimes the Mouse Runs Faster than your Fingers?</title>
		<link>http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/#comments</comments>
		<pubDate>Fri, 18 May 2012 14:00:34 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[query builder]]></category>
		<category><![CDATA[sqldev]]></category>
		<category><![CDATA[worksheet]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3113</guid>
		<description><![CDATA[I&#8217;m a keyboard &#8216;ninja.&#8217; I know how to get a lot of characters to splat up on my screen in as few keystrokes as possible. Yet sometimes I do fall back to the mouse. Cue the command-line SQL*Plus diehards rolling over in their graves. One of my favorite tricks is the ability to drag 2 <a href="http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/#more-3113" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a keyboard &#8216;ninja.&#8217; I know how to get a lot of characters to splat up on my screen in as few keystrokes as possible. Yet sometimes I do fall back to the mouse. <em>Cue the command-line SQL*Plus diehards rolling over in their graves.</em></p>
<p>One of my favorite tricks is the ability to drag 2 or more tables into the worksheet and have SQL Developer automatically create a SELECT with the WHERE clause joins pre-built based on existing foreign key definitions.</p>
<p>Example: Let&#8217;s build a massive query against the Sales History (SH) sample schema.</p>
<div id="attachment_3114" class="wp-caption aligncenter" style="width: 955px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/drag1.png" rel="prettyPhoto[3113]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/drag1.png" alt="" title="drag1" width="945" height="457" class="size-full wp-image-3114" /></a><p class="wp-caption-text">Select 2 or more tables, ctrl+drag and drop to the Worksheet</p></div>
<p>Go with &#8216;Select&#8217; and &#8216;Join.&#8217; I also recommend you leave the &#8216;Prompt every time&#8217; box enabled as you may want to build a DML statement from time to time as well.</p>
<p>After I click &#8216;Apply,&#8217; here is what I&#8217;m left with:</p>
<div id="attachment_3115" class="wp-caption aligncenter" style="width: 754px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/bigquery.png" rel="prettyPhoto[3113]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/bigquery.png" alt="" title="bigquery" width="744" height="706" class="size-full wp-image-3115" /></a><p class="wp-caption-text">That&#039;s a lot of typing y&#039;all!</p></div>
<h3>There&#8217;s a few things I really like here</h3>
<p>First, there is no SELECT * in this statement. SQL Developer is throwing all those column names in my face. The &#8216;*&#8217; is just too convenient and easy for me to overlook. It&#8217;s expensive to query data you don&#8217;t need. This messy query is just begging to be trimmed down.</p>
<p>Second, the tables are auto-aliased. Maybe I don&#8217;t like the aliases, but they are aliased so it will run out of the box.</p>
<h3>Trim the SELECT, Use Better Table Aliases</h3>
<p>No need to use SEARCH and REPLACE. No need to move your mouse to delete unwanted columns. Just click here.</p>
<div id="attachment_3116" class="wp-caption aligncenter" style="width: 370px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/query_builder.png" rel="prettyPhoto[3113]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/query_builder.png" alt="" title="query_builder" width="360" height="194" class="size-full wp-image-3116" /></a><p class="wp-caption-text">It&#039;s there to HELP you</p></div>
<h3>Uncheck All</h3>
<p>Mouse right click on your table, and select &#8216;Uncheck All.&#8217; Then go back and add what you REALLY want.</p>
<div id="attachment_3117" class="wp-caption aligncenter" style="width: 955px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/uncheck.png" rel="prettyPhoto[3113]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/uncheck.png" alt="" title="uncheck" width="945" height="421" class="size-full wp-image-3117" /></a><p class="wp-caption-text">TMI?</p></div>
<p>Lather, rinse, and repeat.</p>
<h3>Use Better Table Aliases</h3>
<p>&#8216;A&#8217; is not very useful. But maybe &#8216;PROD&#8217; is. Or maybe no alias is the best alias. Mouse right click on the table and choose &#8216;Properties.&#8217; Provide a new alias or remove it completely.</p>
<p>Lather, rinse, and repeat.</p>
<h3>Now toggle back to the Worksheet</h3>
<div id="attachment_3118" class="wp-caption aligncenter" style="width: 765px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/smallquery.png" rel="prettyPhoto[3113]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/smallquery.png" alt="" title="smallquery" width="755" height="347" class="size-full wp-image-3118" /></a><p class="wp-caption-text">A little better?</p></div>
<p>Now you are left to your evil SQL coding. Add your additional predicates, subqueries, WITH-ify it, etc. Of course you can rely on the Query Builder for doing this sort of work as well, but I find the biggest bang for your productivity buck is to let it simply build out the &#8216;framework&#8217; of your SQL statement and then finish it off in the worksheet.</p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/" title="Formatting Query Results to CSV in Oracle SQL Developer">Formatting Query Results to CSV in Oracle SQL Developer</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-query-grid-tricks/" title="SQL Developer Query &#038; Grid Tricks">SQL Developer Query &#038; Grid Tricks</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/02/sql-developer-trick-double-click-to-go-full-screen/" title="SQL Developer Trick: Double-Click to Go Full Screen">SQL Developer Trick: Double-Click to Go Full Screen</a></li><li><a href="http://www.thatjeffsmith.com/archive/2011/11/code-completion-insight-with-oracle-sql-developer/" title="Code Completion Insight with Oracle SQL Developer">Code Completion Insight with Oracle SQL Developer</a></li><li><a href="http://www.thatjeffsmith.com/archive/2011/11/sqldev-tip-and-trick-drag-and-drop-to-worksheet/" title="SQLDev Tip and Trick: Drag and Drop to Worksheet">SQLDev Tip and Trick: Drag and Drop to Worksheet</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DDL Script Previews in Oracle SQL Developer Data Modeler</title>
		<link>http://www.thatjeffsmith.com/archive/2012/05/ddl-script-previews-in-oracle-sql-developer-data-modeler/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/05/ddl-script-previews-in-oracle-sql-developer-data-modeler/#comments</comments>
		<pubDate>Wed, 16 May 2012 16:23:44 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[data modeling]]></category>
		<category><![CDATA[DDL]]></category>
		<category><![CDATA[sqldev]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3102</guid>
		<description><![CDATA[Data Definition Language (DDL) is used to describe an object in SQL. When you model a table in your relational model using Oracle SQL Developer Data Modeler, you are probably very curious as to the code that is being generated to represent that object. You can peek into this code using your mouse - You <a href="http://www.thatjeffsmith.com/archive/2012/05/ddl-script-previews-in-oracle-sql-developer-data-modeler/#more-3102" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>Data Definition Language (DDL) is used to describe an object in SQL. When you model a table in your relational model using Oracle SQL Developer Data Modeler, you are probably very curious as to the code that is being generated to represent that object.</p>
<p>You can peek into this code using your mouse -</p>
<div id="attachment_3103" class="wp-caption aligncenter" style="width: 646px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/model_ddl_preview1.png" rel="prettyPhoto[3102]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/model_ddl_preview1.png" alt="" title="model_ddl_preview1" width="636" height="480" class="size-full wp-image-3103" /></a><p class="wp-caption-text">The Code behind the pretty picture</p></div>
<p>You can right-mouse-click on an object and choose &#8216;DDL Preview,&#8217; or you can use the keyboard shortcut, Alt+Shift+I.</p>
<p>Here&#8217;s trick #1:</p>
<h3>Mouse Over an object to get the DDL</h3>
<p>Once the previewer is open, it&#8217;s dynamic. So click on another object in the model, and it will auto-refresh.</p>
<div id="attachment_3104" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/ddl_preview_GIF.gif" rel="prettyPhoto[3102]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/ddl_preview_GIF.gif" alt="" title="ddl_preview_GIF" width="640" height="480" class="size-full wp-image-3104" /></a><p class="wp-caption-text">Auto-Generate DDL Text By Clicking on the Objects</p></div>
<p>And trick #2:</p>
<h3>Change How the DDL is generated on the fly</h3>
<p>Open the Preferences dialog under the Tools menu and proceed to the DDL page. There you can specify how to generate the DDL including:</p>
<ul>
<li>Use Quoted Identifiers &#8212; this drives me nuts!</li>
<li>Generate Inline Column Constraints</li>
<li>Generate Comments in RDBMS</li>
</ul>
<p>After you make this change, simply click back into the object and the DDL will auto-refresh based on your new setting. Here&#8217;s an example of how that looks with Quoted Identifiers.</p>
<p><strong>The Options</strong></p>
<div id="attachment_3106" class="wp-caption aligncenter" style="width: 762px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/model_ddl_preview2.png" rel="prettyPhoto[3102]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/model_ddl_preview2.png" alt="" title="model_ddl_preview2" width="752" height="510" class="size-full wp-image-3106" /></a><p class="wp-caption-text">DLL Generation Options</p></div>
<p><strong>Previewing the Code</strong><br />
<div id="attachment_3105" class="wp-caption aligncenter" style="width: 760px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/model_ddl_preview3.png" rel="prettyPhoto[3102]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/model_ddl_preview3.png" alt="" title="model_ddl_preview3" width="750" height="498" class="size-full wp-image-3105" /></a><p class="wp-caption-text">My object names are now case-sensitive, enjoy suckers!</p></div>
<p>You can expect more options and flexibility when it comes to generating the DDL in upcoming versions of SQL Developer Data Modeler. If you want to see something in particular be sure to <a href="https://apex.oracle.com/pls/apex/f?p=43135:1">add the request formally</a>, or leave me a comment here.</p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/03/diffs-and-alter-scripts-via-oracle-sql-developer-data-modeler/" title="DIFFs and Alter Scripts via Oracle SQL Developer Data Modeler">DIFFs and Alter Scripts via Oracle SQL Developer Data Modeler</a></li><li><a href="http://www.thatjeffsmith.com/archive/2011/11/you-know-what-grinds-my-gears-database-design-edition/" title="You Know What Grinds My Gears? &#8211; Database Design Edition">You Know What Grinds My Gears? &#8211; Database Design Edition</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/entity-relationship-diagrams-erd/" title="Entity Relationship Diagrams (ERD)">Entity Relationship Diagrams (ERD)</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/02/sql-developer-data-modeler-navigator-can-get-you-there-i-bet/" title="SQL Developer Data Modeler Navigator Can Get You There I Bet!">SQL Developer Data Modeler Navigator Can Get You There I Bet!</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/01/visualize-your-ddl-scripts/" title="Visualize Your DDL Scripts">Visualize Your DDL Scripts</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/05/ddl-script-previews-in-oracle-sql-developer-data-modeler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Developer Incremental Find via Ctrl-E</title>
		<link>http://www.thatjeffsmith.com/archive/2012/05/sql-developer-incremental-find-via-ctrl-e/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/05/sql-developer-incremental-find-via-ctrl-e/#comments</comments>
		<pubDate>Mon, 14 May 2012 18:03:42 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sqldev]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3094</guid>
		<description><![CDATA[Incremental find. What is that? It is one of many features in SQL Developer that I have managed to overlook. It has been right there though, staring me in the face. I&#8217;m betting that many of you have seen it without really SEEING it, just like I have been doing. Until today that is! Let&#8217;s <a href="http://www.thatjeffsmith.com/archive/2012/05/sql-developer-incremental-find-via-ctrl-e/#more-3094" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p><em>Incremental find</em>. What is that? It is one of many features in SQL Developer that I have managed to overlook. It has been right there though,  staring me in the face. I&#8217;m betting that many of you have seen it without really SEEING it, just like I have been doing.</p>
<p>Until today that is!</p>
<div id="attachment_3095" class="wp-caption aligncenter" style="width: 404px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/incremental_find.png" rel="prettyPhoto[3094]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/incremental_find.png" alt="" title="incremental_find" width="394" height="621" class="size-full wp-image-3095" /></a><p class="wp-caption-text">I know that &#039;Find&#039; does, but what&#039;s this other find do?</p></div>
<p>Let&#8217;s take a look at the word &#8216;incremental&#8217; first:</p>
<p>From <a href="http://dictionary.reference.com/browse/incremental">http://dictionary.reference.com</a></p>
<blockquote><p>in·cre·men·tal   [in-kruh-men-tl, ing-]
adjective<br />
increasing or adding on, especially in a regular series: small, incremental tax hikes.<br />
Origin:<br />
increment  + -al1</p></blockquote>
<h3>So it&#8217;s like a search that&#8217;s increases or adds on?</h3>
<p>And really, Dictionary Reference DOTCOM, who uses the word to define said word?</p>
<p>Let&#8217;s just see what happens when I use it in SQL Developer.</p>
<p>Our keyboard shortcut is Ctrl+E.</p>
<p>Open a file or PL/SQL object and put your cursor somewhere in the middle of the document.</p>
<p>Ctrl+E</p>
<p>Type in a search string.</p>
<p>Voila! Right away you should see where the &#8216;incremental&#8217; is coming in. What it means in this case is that it&#8217;s an extra-awesome &#8216;Find.&#8217;</p>
<p>Here&#8217;s the Ctrl+F find:</p>
<div id="attachment_3096" class="wp-caption aligncenter" style="width: 671px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/find1.png" rel="prettyPhoto[3094]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/find1.png" alt="" title="find1" width="661" height="619" class="size-full wp-image-3096" /></a><p class="wp-caption-text">&#039;Normal&#039; Ctrl+F Find</p></div>
<p>Hitting the &#8216;Up&#8217; and &#8216;Down&#8217; arrow buttons will cycle through the text finding the next iteration of the search text. <em>SQL Developer Power Tip: Use F3 to advance the search to the next occurrence. </em></p>
<p>Now, let&#8217;s &#8216;increment&#8217; our find with Ctrl+E</p>
<div id="attachment_3097" class="wp-caption aligncenter" style="width: 699px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/find2.png" rel="prettyPhoto[3094]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/find2.png" alt="" title="find2" width="689" height="647" class="size-full wp-image-3097" /></a><p class="wp-caption-text">Find and highlight all occurrences of the search string forward</p></div>
<h3>Incremental Find Backward</h3>
<p>I&#8217;m going to let you figure out what this does. But here&#8217;s a hint. Put your cursor before an exception block, and do a Ctrl+Shift+E. Type your search string. SQL Developer will highlight all occurrences of the the string BEFORE your exception block.</p>
<p>Brilliant!</p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/04/odtug-sql-developer-tips-tricks-presentation/" title="ODTUG SQL Developer Tips &#038; Tricks Presentation">ODTUG SQL Developer Tips &#038; Tricks Presentation</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-query-grid-tricks/" title="SQL Developer Query &#038; Grid Tricks">SQL Developer Query &#038; Grid Tricks</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/" title="Sometimes the Mouse Runs Faster than your Fingers?">Sometimes the Mouse Runs Faster than your Fingers?</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/ddl-script-previews-in-oracle-sql-developer-data-modeler/" title="DDL Script Previews in Oracle SQL Developer Data Modeler">DDL Script Previews in Oracle SQL Developer Data Modeler</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/oracle-sql-developer-a-5-minute-tour/" title="Oracle SQL Developer: a Video Tour of its Major Features">Oracle SQL Developer: a Video Tour of its Major Features</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/05/sql-developer-incremental-find-via-ctrl-e/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle SQL Developer: a Video Tour of its Major Features</title>
		<link>http://www.thatjeffsmith.com/archive/2012/05/oracle-sql-developer-a-5-minute-tour/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/05/oracle-sql-developer-a-5-minute-tour/#comments</comments>
		<pubDate>Wed, 09 May 2012 21:15:09 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[sqldev]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3078</guid>
		<description><![CDATA[What is Oracle SQL Developer? If you&#8217;re brand new to Oracle or are just now discovering the joys of using a GUI over the command-line interface, this video will show you a high level overview of SQL Developer&#8217;s main feature areas. Those include: an IDE for querying, scripting, debugging, and executing statements and programs a <a href="http://www.thatjeffsmith.com/archive/2012/05/oracle-sql-developer-a-5-minute-tour/#more-3078" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>What is Oracle SQL Developer? If you&#8217;re brand new to Oracle or are just now discovering the joys of using a GUI over the command-line interface, this video will show you a high level overview of SQL Developer&#8217;s main feature areas.</p>
<p>Those include:</p>
<ul>
<li>an IDE for querying, scripting, debugging, and executing statements and programs</li>
<li>a database navigation tree and object editors for pointing and clicking your way through database</li>
<li>an extensible framework where users can program their own features or add 3rd party plugins</li>
<li>database administration tasks including backups and storage management</li>
<li>the ability to program, run, and export reports to PDF</li>
<li>a fully functional data modeling solution</li>
<li>Oracle&#8217;s official 3rd party database migration platform for moving objects and data to Oracle</li>
</li>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/U-Iigi2oBUo?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p><strong>A few notes about the video</strong><br />
This is a revised or 2nd edition of the video. The first version did run in under 5 minutes, but the audio quality was less than acceptable. I produced a new video sans Video Cam (who wants to see me anyway?) and the audio is much cleaner. Unfortunately I found a couple of more features to spotlight and it&#8217;s now sitting at 8 minutes. I swear this is mostly not a trick to keep you on my site longer, mostly.</p>
<p>If you haven&#8217;t installed SQL Developer yet, then you&#8217;ll want check out my previous post on<a href="http://www.thatjeffsmith.com/archive/2012/05/getting-started-with-sql-developer-less-than-5-minutes/"> How To Install SQL Developer in 5 minutes or less</a>.</p>
<p>I&#8217;ll continue this series with 5 minute &#8216;deep&#8217; dives into the features covered in this tour.</p>
<p>For advanced tips and tricks, be sure to check out my &#8216;SQL Developer&#8217; resources page linked at the top of this website.</p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/04/sqldev-trick-shifthover-to-peek-into-a-stored-proc/" title="SQLDev Trick: SHIFT+Hover to Peek Into a Stored Proc">SQLDev Trick: SHIFT+Hover to Peek Into a Stored Proc</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-video-tutorial-navigating-your-plsql/" title="SQL Developer Video Tutorial: Navigating Your PL/SQL">SQL Developer Video Tutorial: Navigating Your PL/SQL</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/02/your-guide-to-new-features-in-oracle-sql-developer-version-3-1/" title="Your Guide to New Features in Oracle SQL Developer version 3.1">Your Guide to New Features in Oracle SQL Developer version 3.1</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/" title="Sometimes the Mouse Runs Faster than your Fingers?">Sometimes the Mouse Runs Faster than your Fingers?</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/ddl-script-previews-in-oracle-sql-developer-data-modeler/" title="DDL Script Previews in Oracle SQL Developer Data Modeler">DDL Script Previews in Oracle SQL Developer Data Modeler</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/05/oracle-sql-developer-a-5-minute-tour/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting started with SQL Developer in less than 5 minutes</title>
		<link>http://www.thatjeffsmith.com/archive/2012/05/getting-started-with-sql-developer-less-than-5-minutes/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/05/getting-started-with-sql-developer-less-than-5-minutes/#comments</comments>
		<pubDate>Mon, 07 May 2012 14:24:51 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[sqldev]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3069</guid>
		<description><![CDATA[It&#8217;s easy to forget that many people still have not discovered SQL Developer, or are just getting started. Many of my recent posts have been on advanced topics, hidden tricks, and productivity tips. I want to spend some time in the next few weeks helping the beginners out there. I can&#8217;t think of a better <a href="http://www.thatjeffsmith.com/archive/2012/05/getting-started-with-sql-developer-less-than-5-minutes/#more-3069" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s easy to forget that many people still have not discovered SQL Developer, or are just getting started. Many of my recent posts have been on advanced topics, hidden tricks, and productivity tips.</p>
<p>I want to spend some time in the next few weeks helping the beginners out there.</p>
<p>I can&#8217;t think of a better place to start than with how to &#8216;install&#8217; SQL Developer.</p>
<p>I&#8217;ve been telling anyone who will listen than you can get up and running with SQL Developer in under 5 minutes. That&#8217;s a pretty big claim, and I reckon I should back that up now.</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/zqvosCFpYzU?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>Disclaimer: I have a hi-speed residential network connection that was averaging 15.93Mbps this morning. I realize many of you have connections that are both slower and faster, so keep that in mind when I make my &#8217;5 minute&#8217; claim.</p>
<h3>The Basics &#8211; Download SQL Developer</h3>
<p>The hardest part is the first step &#8211; picking your <a href="http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html">download </a>and waiting. If you have a 64 bit Windows machine, you&#8217;ll need to <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html">download the 64bit 1.6 JDK</a> first.</p>
<p><strong>JDK? JRE? Java? What?!?</strong><br />
SQL Developer is a Java application. To run it requires the Java Virtual Machine &#8211; this is the &#8216;go box&#8217; for java applications. If you&#8217;ve ever seen that funny icon popup in your systray while running apps over a website, that&#8217;s probably java.</p>
<p>JDK &#8211; Java Development Kit. I call it the &#8216;Toolkit&#8217;, but it&#8217;s just a &#8216;Kit,&#8217; but not THAT <a href="http://www.youtube.com/watch?v=Mo8Qls0HnWo">K.I.T.T.</a></p>
<p>The Java Runtime Engine (JRE) is a smaller and less powerful &#8216;go box&#8217; for Java applications, but SQL Developer relies on some of the libraries included only in the JDK &#8211; so get the JDK!</p>
<p>Many versions of Java out there &#8211; 5, 6, and 7 are the most common. The name is &#8217;6&#8242;, but the version is &#8217;1.6.&#8217; We develop, test, and support SQL Developer for 1.6. You can run other versions, but may get less than awesome results.</p>
<p><strong>It&#8217;s an archive, not an installer.</strong> After you&#8217;ve downloaded SQL Developer, there&#8217;s no installer to run. Just extract the folder, then find the &#8216;sqldeveloper.exe&#8217; and open it.</p>
<p>If you&#8217;ve downloaded the 32 bit windows version with the JDK bundled, you&#8217;re all set.</p>
<p>If not, you&#8217;ll need to tell SQL Developer where it can find it&#8217;s Java master, AKA the Java Virtual Machine. Be sure to point to the &#8216;java.exe&#8217; in the full JDK (not the JRE.)</p>
<div id="attachment_3070" class="wp-caption aligncenter" style="width: 412px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/javapath.png" rel="prettyPhoto[3069]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/javapath.png" alt="" title="javapath" width="402" height="151" class="size-full wp-image-3070" /></a><p class="wp-caption-text">Tell SQL Developer where it can find Java</p></div>
<p>Once you hit OK, you&#8217;ll never have to answer this question again.</p>
<p>You can change this location later in the /sqldeveloper/bin/sqldeveloper.conf file. Change the following line -</p>
<pre class="brush: plain; title: ; notranslate">
SetJavaHome ../../jdk
</pre>
<p>SQL Developer will then start, and you can proceed by setting up your connection.</p>
<p>Before you can connect, you will need the following:</p>
<ul>
<li>database user account (complete with username and password)</li>
<li>location of database (either via TNSNames, LDAP, or servername/IP, port, and SID/Service)
</ul>
<p>If you don&#8217;t have an account, don&#8217;t go online asking people for a &#8216;default.&#8217; Find the owner of your application or database and ask them for an account. If you don&#8217;t want to involve them, then you&#8217;re looking for a backdoor and could be labeled a &#8216;hacker.&#8217;</p>
<h3>Now what?</h3>
<p>Now you get to learn by doing. Many of you won&#8217;t have access to formal training, and I think that&#8217;s a real shame. If your organization provides training or compensation for taking classes &#8211; do it! Lots of free resources out there, including my blog of course.</p>
<p>Here&#8217;s a rundown of the official stuff from Oracle:</p>
<ul>
<li><a href="https://forums.oracle.com/forums/forum.jspa?forumID=260">OTN SQL Developer Forum</a> &#8211; ask questions here</li>
<li><a href="http://apex.oracle.com/pls/apex/f?p=44785:2:0:::2:P2_GROUP_ID,P2_PRODUCT_ID,P2_TAGS:1000,2040">60+ video tutorials</a> in the Oracle Learning Library (OLL)</li>
<li><a href="http://www.oracle.com/technetwork/developer-tools/sql-developer/getting-started-155046.html">10 Step Getting Started Guide</a></li>
</ul>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/" title="Sometimes the Mouse Runs Faster than your Fingers?">Sometimes the Mouse Runs Faster than your Fingers?</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/ddl-script-previews-in-oracle-sql-developer-data-modeler/" title="DDL Script Previews in Oracle SQL Developer Data Modeler">DDL Script Previews in Oracle SQL Developer Data Modeler</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/sql-developer-incremental-find-via-ctrl-e/" title="SQL Developer Incremental Find via Ctrl-E">SQL Developer Incremental Find via Ctrl-E</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/oracle-sql-developer-a-5-minute-tour/" title="Oracle SQL Developer: a Video Tour of its Major Features">Oracle SQL Developer: a Video Tour of its Major Features</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/" title="Formatting Query Results to CSV in Oracle SQL Developer">Formatting Query Results to CSV in Oracle SQL Developer</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/05/getting-started-with-sql-developer-less-than-5-minutes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Formatting Query Results to CSV in Oracle SQL Developer</title>
		<link>http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/#comments</comments>
		<pubDate>Wed, 02 May 2012 14:07:40 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[sqldev]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[worksheet]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3054</guid>
		<description><![CDATA[I find that programs that are developed by the same folks that use that program in production are some of the best applications out there. The developer is the user. They have to eat their own dog food &#8211; an unpleasant metaphor, but one that&#8217;s pretty well understood. Two great examples of that here are <a href="http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/#more-3054" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>I find that programs that are developed by the same folks that use that program in production are some of the best applications out there. The developer is the user. They have to eat their own dog food &#8211; an unpleasant metaphor, but one that&#8217;s pretty well understood. Two great examples of that here are APEX and of course SQL Developer.</p>
<p>Of course not every dog gets to add his own secret ingredients to his dinner!</p>
<p>I also find that lazy developers make the best developers. They are so lazy that they will spend a few extra minutes to write a program that writes their programs for them. And so you&#8217;ll find this cool kind of stuff all over the application.</p>
<p>Here&#8217;s an example of that in SQL Developer -</p>
<h3>Quick ResultSet Exports as Script Output</h3>
<p>I&#8217;m too lazy to hit execute > SaveAs > Open File. I just want to get my delimited text output RIGHT NOW!</p>
<p>The &#8216;old&#8217; way -</p>
<div id="attachment_3055" class="wp-caption aligncenter" style="width: 911px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/csv1.png" rel="prettyPhoto[3054]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/csv1.png" alt="" title="csv1" width="901" height="622" class="size-full wp-image-3055" /></a><p class="wp-caption-text">Our old friend, the Export Dialog</p></div>
<p>And the &#8216;new&#8217; way (well, new to me!) -</p>
<div id="attachment_3056" class="wp-caption aligncenter" style="width: 577px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/csv2.png" rel="prettyPhoto[3054]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/csv2.png" alt="" title="csv2" width="567" height="503" class="size-full wp-image-3056" /></a><p class="wp-caption-text">Have the query results pre-formatted in the format of your choice!</p></div>
<p><strong>The Code</strong></p>
<pre class="brush: sql; title: ; notranslate">
SELECT /*csv*/ * FROM scott.emp;
SELECT /*xml*/ * FROM scott.emp;
SELECT /*html*/ * FROM scott.emp;
SELECT /*delimited*/ * FROM scott.emp;
SELECT /*insert*/ * FROM scott.emp;
SELECT /*loader*/ * FROM scott.emp;
SELECT /*fixed*/ * FROM scott.emp;
SELECT /*text*/ * FROM scott.emp;
</pre>
<p>You need to execute your statement(s) as a script using F5 or the 2nd execution button on the worksheet toolbar. You&#8217;ll notice the hint name matches the available output types on the Export wizard.</p>
<p>You can try XLSX if you want, but I&#8217;m not sure how useful the output will be.</p>
<p>Here&#8217;s the raw output from the previous examples in case you&#8217;re not sitting at your work desk when you read this (click to expand):</p>
<pre class="brush: plain; collapse: true; light: false; title: ; toolbar: true; notranslate">

&gt; SELECT /*csv*/ * FROM scott.emp
&quot;EMPNO&quot;,&quot;ENAME&quot;,&quot;JOB&quot;,&quot;MGR&quot;,&quot;HIREDATE&quot;,&quot;SAL&quot;,&quot;COMM&quot;,&quot;DEPTNO&quot;
7369,&quot;SMITH&quot;,&quot;CLERK&quot;,7902,17-DEC-80 12.00.00,800,,20
7499,&quot;ALLEN&quot;,&quot;SALESMAN&quot;,7698,20-FEB-81 12.00.00,1600,300,30
7521,&quot;WARD&quot;,&quot;SALESMAN&quot;,7698,22-FEB-81 12.00.00,1250,500,30
7566,&quot;JONES&quot;,&quot;MANAGER&quot;,7839,02-APR-81 12.00.00,2975,,20
7654,&quot;MARTIN&quot;,&quot;SALESMAN&quot;,7698,28-SEP-81 12.00.00,1250,1400,30
7698,&quot;BLAKE&quot;,&quot;MANAGER&quot;,7839,01-MAY-81 12.00.00,2850,,30
7782,&quot;CLARK&quot;,&quot;MANAGER&quot;,7839,09-JUN-81 12.00.00,2450,,10
7788,&quot;SCOTT&quot;,&quot;ANALYST&quot;,7566,19-APR-87 12.00.00,3000,,20
7839,&quot;KING&quot;,&quot;PRESIDENT&quot;,,17-NOV-81 12.00.00,5000,,10
7844,&quot;TURNER&quot;,&quot;SALESMAN&quot;,7698,08-SEP-81 12.00.00,1500,0,30
7876,&quot;ADAMS&quot;,&quot;CLERK&quot;,7788,23-MAY-87 12.00.00,1100,,20
7900,&quot;JAMES&quot;,&quot;CLERK&quot;,7698,03-DEC-81 12.00.00,950,,30
7902,&quot;FORD&quot;,&quot;ANALYST&quot;,7566,03-DEC-81 12.00.00,3000,,20
7934,&quot;MILLER&quot;,&quot;CLERK&quot;,7782,23-JAN-82 12.00.00,1300,,10

&gt; SELECT /*xml*/ * FROM scott.emp
&lt;?xml version='1.0'  encoding='UTF8' ?&gt;
&lt;RESULTS&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7369]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[SMITH]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[CLERK]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7902]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[17-DEC-80 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[800]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[20]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7499]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[ALLEN]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[SALESMAN]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7698]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[20-FEB-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[1600]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[300]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[30]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7521]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[WARD]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[SALESMAN]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7698]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[22-FEB-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[1250]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[500]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[30]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7566]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[JONES]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[MANAGER]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7839]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[02-APR-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[2975]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[20]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7654]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[MARTIN]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[SALESMAN]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7698]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[28-SEP-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[1250]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[1400]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[30]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7698]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[BLAKE]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[MANAGER]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7839]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[01-MAY-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[2850]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[30]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7782]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[CLARK]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[MANAGER]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7839]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[09-JUN-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[2450]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[10]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7788]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[SCOTT]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[ANALYST]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7566]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[19-APR-87 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[3000]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[20]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7839]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[KING]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[PRESIDENT]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[17-NOV-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[5000]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[10]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7844]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[TURNER]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[SALESMAN]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7698]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[08-SEP-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[1500]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[0]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[30]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7876]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[ADAMS]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[CLERK]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7788]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[23-MAY-87 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[1100]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[20]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7900]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[JAMES]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[CLERK]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7698]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[03-DEC-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[950]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[30]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7902]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[FORD]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[ANALYST]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7566]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[03-DEC-81 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[3000]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[20]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
	&lt;ROW&gt;
		&lt;COLUMN NAME=&quot;EMPNO&quot;&gt;&lt;![CDATA[7934]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;ENAME&quot;&gt;&lt;![CDATA[MILLER]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;JOB&quot;&gt;&lt;![CDATA[CLERK]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;MGR&quot;&gt;&lt;![CDATA[7782]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;HIREDATE&quot;&gt;&lt;![CDATA[23-JAN-82 12.00.00]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;SAL&quot;&gt;&lt;![CDATA[1300]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;COMM&quot;&gt;&lt;![CDATA[]]&gt;&lt;/COLUMN&gt;
		&lt;COLUMN NAME=&quot;DEPTNO&quot;&gt;&lt;![CDATA[10]]&gt;&lt;/COLUMN&gt;
	&lt;/ROW&gt;
&lt;/RESULTS&gt;
&gt; SELECT /*html*/ * FROM scott.emp
&lt;html&gt;&lt;head&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF8&quot;&gt;
&lt;!-- base href=&quot;http://apexdev.us.oracle.com:7778/pls/apx11w/&quot; --&gt;
&lt;style type=&quot;text/css&quot;&gt;
table {
background-color:#F2F2F5;
border-width:1px 1px 0px 1px;
border-color:#C9CBD3;
border-style:solid;
}
td {
color:#000000;
font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;
font-size:9pt;
background-color:#EAEFF5;
padding:8px;
background-color:#F2F2F5;
border-color:#ffffff #ffffff #cccccc #ffffff;
border-style:solid solid solid solid;
border-width:1px 0px 1px 0px;
}
th {
font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;
font-size:9pt;
padding:8px;
background-color:#CFE0F1;
border-color:#ffffff #ffffff #cccccc #ffffff;
border-style:solid solid solid none;
border-width:1px 0px 1px 0px;
white-space:nowrap;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
window.apex_search = {};
apex_search.init = function (){
	this.rows = document.getElementById('data').getElementsByTagName('TR');
	this.rows_length = apex_search.rows.length;
	this.rows_text =  [];
	for (var i=0;i&lt;apex_search.rows_length;i++){
        this.rows_text[i] = (apex_search.rows[i].innerText)?apex_search.rows[i].innerText.toUpperCase():apex_search.rows[i].textContent.toUpperCase();
	}
	this.time = false;
}

apex_search.lsearch = function(){
	this.term = document.getElementById('S').value.toUpperCase();
	for(var i=0,row;row = this.rows[i],row_text = this.rows_text[i];i++){
		row.style.display = ((row_text.indexOf(this.term) != -1) || this.term  === '')?'':'none';
	}
	this.time = false;
}

apex_search.search = function(e){
    var keycode;
    if(window.event){keycode = window.event.keyCode;}
    else if (e){keycode = e.which;}
    else {return false;}
    if(keycode == 13){
		apex_search.lsearch();
	}
    else{return false;}
}&lt;/script&gt;
&lt;/head&gt;&lt;body onload=&quot;apex_search.init();&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;input type=&quot;text&quot; size=&quot;30&quot; maxlength=&quot;1000&quot; value=&quot;&quot; id=&quot;S&quot; onkeyup=&quot;apex_search.search(event);&quot; /&gt;&lt;input type=&quot;button&quot; value=&quot;Search&quot; onclick=&quot;apex_search.lsearch();&quot;/&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;	&lt;th&gt;EMPNO&lt;/th&gt;
	&lt;th&gt;ENAME&lt;/th&gt;
	&lt;th&gt;JOB&lt;/th&gt;
	&lt;th&gt;MGR&lt;/th&gt;
	&lt;th&gt;HIREDATE&lt;/th&gt;
	&lt;th&gt;SAL&lt;/th&gt;
	&lt;th&gt;COMM&lt;/th&gt;
	&lt;th&gt;DEPTNO&lt;/th&gt;
&lt;/tr&gt;
&lt;tbody id=&quot;data&quot;&gt;

	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7369&lt;/td&gt;
&lt;td&gt;SMITH&lt;/td&gt;
&lt;td&gt;CLERK&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7902&lt;/td&gt;
&lt;td&gt;17-DEC-80 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;800&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;20&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7499&lt;/td&gt;
&lt;td&gt;ALLEN&lt;/td&gt;
&lt;td&gt;SALESMAN&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7698&lt;/td&gt;
&lt;td&gt;20-FEB-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1600&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;300&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;30&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7521&lt;/td&gt;
&lt;td&gt;WARD&lt;/td&gt;
&lt;td&gt;SALESMAN&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7698&lt;/td&gt;
&lt;td&gt;22-FEB-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1250&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;500&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;30&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7566&lt;/td&gt;
&lt;td&gt;JONES&lt;/td&gt;
&lt;td&gt;MANAGER&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7839&lt;/td&gt;
&lt;td&gt;02-APR-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;2975&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;20&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7654&lt;/td&gt;
&lt;td&gt;MARTIN&lt;/td&gt;
&lt;td&gt;SALESMAN&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7698&lt;/td&gt;
&lt;td&gt;28-SEP-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1250&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1400&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;30&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7698&lt;/td&gt;
&lt;td&gt;BLAKE&lt;/td&gt;
&lt;td&gt;MANAGER&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7839&lt;/td&gt;
&lt;td&gt;01-MAY-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;2850&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;30&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7782&lt;/td&gt;
&lt;td&gt;CLARK&lt;/td&gt;
&lt;td&gt;MANAGER&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7839&lt;/td&gt;
&lt;td&gt;09-JUN-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;2450&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;10&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7788&lt;/td&gt;
&lt;td&gt;SCOTT&lt;/td&gt;
&lt;td&gt;ANALYST&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7566&lt;/td&gt;
&lt;td&gt;19-APR-87 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;3000&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;20&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7839&lt;/td&gt;
&lt;td&gt;KING&lt;/td&gt;
&lt;td&gt;PRESIDENT&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;17-NOV-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;5000&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;10&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7844&lt;/td&gt;
&lt;td&gt;TURNER&lt;/td&gt;
&lt;td&gt;SALESMAN&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7698&lt;/td&gt;
&lt;td&gt;08-SEP-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1500&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;0&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;30&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7876&lt;/td&gt;
&lt;td&gt;ADAMS&lt;/td&gt;
&lt;td&gt;CLERK&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7788&lt;/td&gt;
&lt;td&gt;23-MAY-87 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1100&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;20&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7900&lt;/td&gt;
&lt;td&gt;JAMES&lt;/td&gt;
&lt;td&gt;CLERK&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7698&lt;/td&gt;
&lt;td&gt;03-DEC-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;950&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;30&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7902&lt;/td&gt;
&lt;td&gt;FORD&lt;/td&gt;
&lt;td&gt;ANALYST&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7566&lt;/td&gt;
&lt;td&gt;03-DEC-81 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;3000&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;20&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;7934&lt;/td&gt;
&lt;td&gt;MILLER&lt;/td&gt;
&lt;td&gt;CLERK&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;7782&lt;/td&gt;
&lt;td&gt;23-JAN-82 12.00.00&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1300&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;10&lt;/td&gt;
	&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;!-- SQL:
null--&gt;&lt;/body&gt;&lt;/html&gt;
&gt; SELECT /*delimited*/ * FROM scott.emp
&quot;EMPNO&quot;,&quot;ENAME&quot;,&quot;JOB&quot;,&quot;MGR&quot;,&quot;HIREDATE&quot;,&quot;SAL&quot;,&quot;COMM&quot;,&quot;DEPTNO&quot;
7369,&quot;SMITH&quot;,&quot;CLERK&quot;,7902,17-DEC-80 12.00.00,800,,20
7499,&quot;ALLEN&quot;,&quot;SALESMAN&quot;,7698,20-FEB-81 12.00.00,1600,300,30
7521,&quot;WARD&quot;,&quot;SALESMAN&quot;,7698,22-FEB-81 12.00.00,1250,500,30
7566,&quot;JONES&quot;,&quot;MANAGER&quot;,7839,02-APR-81 12.00.00,2975,,20
7654,&quot;MARTIN&quot;,&quot;SALESMAN&quot;,7698,28-SEP-81 12.00.00,1250,1400,30
7698,&quot;BLAKE&quot;,&quot;MANAGER&quot;,7839,01-MAY-81 12.00.00,2850,,30
7782,&quot;CLARK&quot;,&quot;MANAGER&quot;,7839,09-JUN-81 12.00.00,2450,,10
7788,&quot;SCOTT&quot;,&quot;ANALYST&quot;,7566,19-APR-87 12.00.00,3000,,20
7839,&quot;KING&quot;,&quot;PRESIDENT&quot;,,17-NOV-81 12.00.00,5000,,10
7844,&quot;TURNER&quot;,&quot;SALESMAN&quot;,7698,08-SEP-81 12.00.00,1500,0,30
7876,&quot;ADAMS&quot;,&quot;CLERK&quot;,7788,23-MAY-87 12.00.00,1100,,20
7900,&quot;JAMES&quot;,&quot;CLERK&quot;,7698,03-DEC-81 12.00.00,950,,30
7902,&quot;FORD&quot;,&quot;ANALYST&quot;,7566,03-DEC-81 12.00.00,3000,,20
7934,&quot;MILLER&quot;,&quot;CLERK&quot;,7782,23-JAN-82 12.00.00,1300,,10

&gt; SELECT /*insert*/ * FROM scott.emp
REM INSERTING into scott.emp
SET DEFINE OFF;
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7369,'SMITH','CLERK',7902,to_date('17-DEC-80 12.00.00','DD-MON-RR HH.MI.SS'),800,null,20);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7499,'ALLEN','SALESMAN',7698,to_date('20-FEB-81 12.00.00','DD-MON-RR HH.MI.SS'),1600,300,30);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7521,'WARD','SALESMAN',7698,to_date('22-FEB-81 12.00.00','DD-MON-RR HH.MI.SS'),1250,500,30);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7566,'JONES','MANAGER',7839,to_date('02-APR-81 12.00.00','DD-MON-RR HH.MI.SS'),2975,null,20);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7654,'MARTIN','SALESMAN',7698,to_date('28-SEP-81 12.00.00','DD-MON-RR HH.MI.SS'),1250,1400,30);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7698,'BLAKE','MANAGER',7839,to_date('01-MAY-81 12.00.00','DD-MON-RR HH.MI.SS'),2850,null,30);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7782,'CLARK','MANAGER',7839,to_date('09-JUN-81 12.00.00','DD-MON-RR HH.MI.SS'),2450,null,10);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7788,'SCOTT','ANALYST',7566,to_date('19-APR-87 12.00.00','DD-MON-RR HH.MI.SS'),3000,null,20);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7839,'KING','PRESIDENT',null,to_date('17-NOV-81 12.00.00','DD-MON-RR HH.MI.SS'),5000,null,10);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7844,'TURNER','SALESMAN',7698,to_date('08-SEP-81 12.00.00','DD-MON-RR HH.MI.SS'),1500,0,30);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7876,'ADAMS','CLERK',7788,to_date('23-MAY-87 12.00.00','DD-MON-RR HH.MI.SS'),1100,null,20);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7900,'JAMES','CLERK',7698,to_date('03-DEC-81 12.00.00','DD-MON-RR HH.MI.SS'),950,null,30);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7902,'FORD','ANALYST',7566,to_date('03-DEC-81 12.00.00','DD-MON-RR HH.MI.SS'),3000,null,20);
Insert into scott.emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7934,'MILLER','CLERK',7782,to_date('23-JAN-82 12.00.00','DD-MON-RR HH.MI.SS'),1300,null,10);

&gt; SELECT /*loader*/ * FROM scott.emp
 7369|&quot;SMITH&quot;|&quot;CLERK&quot;|7902|17-DEC-80 12.00.00|800||20|
 7499|&quot;ALLEN&quot;|&quot;SALESMAN&quot;|7698|20-FEB-81 12.00.00|1600|300|30|
 7521|&quot;WARD&quot;|&quot;SALESMAN&quot;|7698|22-FEB-81 12.00.00|1250|500|30|
 7566|&quot;JONES&quot;|&quot;MANAGER&quot;|7839|02-APR-81 12.00.00|2975||20|
 7654|&quot;MARTIN&quot;|&quot;SALESMAN&quot;|7698|28-SEP-81 12.00.00|1250|1400|30|
 7698|&quot;BLAKE&quot;|&quot;MANAGER&quot;|7839|01-MAY-81 12.00.00|2850||30|
 7782|&quot;CLARK&quot;|&quot;MANAGER&quot;|7839|09-JUN-81 12.00.00|2450||10|
 7788|&quot;SCOTT&quot;|&quot;ANALYST&quot;|7566|19-APR-87 12.00.00|3000||20|
 7839|&quot;KING&quot;|&quot;PRESIDENT&quot;||17-NOV-81 12.00.00|5000||10|
 7844|&quot;TURNER&quot;|&quot;SALESMAN&quot;|7698|08-SEP-81 12.00.00|1500|0|30|
 7876|&quot;ADAMS&quot;|&quot;CLERK&quot;|7788|23-MAY-87 12.00.00|1100||20|
 7900|&quot;JAMES&quot;|&quot;CLERK&quot;|7698|03-DEC-81 12.00.00|950||30|
 7902|&quot;FORD&quot;|&quot;ANALYST&quot;|7566|03-DEC-81 12.00.00|3000||20|
 7934|&quot;MILLER&quot;|&quot;CLERK&quot;|7782|23-JAN-82 12.00.00|1300||10|

&gt; SELECT /*fixed*/ * FROM scott.emp
&quot;EMPNO&quot;                       &quot;ENAME&quot;                       &quot;JOB&quot;                         &quot;MGR&quot;                         &quot;HIREDATE&quot;                    &quot;SAL&quot;                         &quot;COMM&quot;                        &quot;DEPTNO&quot;
&quot;7369&quot;                        &quot;SMITH&quot;                       &quot;CLERK&quot;                       &quot;7902&quot;                        &quot;17-DEC-80 12.00.00&quot;          &quot;800&quot;                         &quot;&quot;                            &quot;20&quot;
&quot;7499&quot;                        &quot;ALLEN&quot;                       &quot;SALESMAN&quot;                    &quot;7698&quot;                        &quot;20-FEB-81 12.00.00&quot;          &quot;1600&quot;                        &quot;300&quot;                         &quot;30&quot;
&quot;7521&quot;                        &quot;WARD&quot;                        &quot;SALESMAN&quot;                    &quot;7698&quot;                        &quot;22-FEB-81 12.00.00&quot;          &quot;1250&quot;                        &quot;500&quot;                         &quot;30&quot;
&quot;7566&quot;                        &quot;JONES&quot;                       &quot;MANAGER&quot;                     &quot;7839&quot;                        &quot;02-APR-81 12.00.00&quot;          &quot;2975&quot;                        &quot;&quot;                            &quot;20&quot;
&quot;7654&quot;                        &quot;MARTIN&quot;                      &quot;SALESMAN&quot;                    &quot;7698&quot;                        &quot;28-SEP-81 12.00.00&quot;          &quot;1250&quot;                        &quot;1400&quot;                        &quot;30&quot;
&quot;7698&quot;                        &quot;BLAKE&quot;                       &quot;MANAGER&quot;                     &quot;7839&quot;                        &quot;01-MAY-81 12.00.00&quot;          &quot;2850&quot;                        &quot;&quot;                            &quot;30&quot;
&quot;7782&quot;                        &quot;CLARK&quot;                       &quot;MANAGER&quot;                     &quot;7839&quot;                        &quot;09-JUN-81 12.00.00&quot;          &quot;2450&quot;                        &quot;&quot;                            &quot;10&quot;
&quot;7788&quot;                        &quot;SCOTT&quot;                       &quot;ANALYST&quot;                     &quot;7566&quot;                        &quot;19-APR-87 12.00.00&quot;          &quot;3000&quot;                        &quot;&quot;                            &quot;20&quot;
&quot;7839&quot;                        &quot;KING&quot;                        &quot;PRESIDENT&quot;                   &quot;&quot;                            &quot;17-NOV-81 12.00.00&quot;          &quot;5000&quot;                        &quot;&quot;                            &quot;10&quot;
&quot;7844&quot;                        &quot;TURNER&quot;                      &quot;SALESMAN&quot;                    &quot;7698&quot;                        &quot;08-SEP-81 12.00.00&quot;          &quot;1500&quot;                        &quot;0&quot;                           &quot;30&quot;
&quot;7876&quot;                        &quot;ADAMS&quot;                       &quot;CLERK&quot;                       &quot;7788&quot;                        &quot;23-MAY-87 12.00.00&quot;          &quot;1100&quot;                        &quot;&quot;                            &quot;20&quot;
&quot;7900&quot;                        &quot;JAMES&quot;                       &quot;CLERK&quot;                       &quot;7698&quot;                        &quot;03-DEC-81 12.00.00&quot;          &quot;950&quot;                         &quot;&quot;                            &quot;30&quot;
&quot;7902&quot;                        &quot;FORD&quot;                        &quot;ANALYST&quot;                     &quot;7566&quot;                        &quot;03-DEC-81 12.00.00&quot;          &quot;3000&quot;                        &quot;&quot;                            &quot;20&quot;
&quot;7934&quot;                        &quot;MILLER&quot;                      &quot;CLERK&quot;                       &quot;7782&quot;                        &quot;23-JAN-82 12.00.00&quot;          &quot;1300&quot;                        &quot;&quot;                            &quot;10&quot;                          

&gt; SELECT /*text*/ * FROM scott.emp
&quot;EMPNO&quot;null&quot;ENAME&quot;null&quot;JOB&quot;null&quot;MGR&quot;null&quot;HIREDATE&quot;null&quot;SAL&quot;null&quot;COMM&quot;null&quot;DEPTNO&quot;
7369null&quot;SMITH&quot;null&quot;CLERK&quot;null7902null17-DEC-80 12.00.00null800nullnull20
7499null&quot;ALLEN&quot;null&quot;SALESMAN&quot;null7698null20-FEB-81 12.00.00null1600null300null30
7521null&quot;WARD&quot;null&quot;SALESMAN&quot;null7698null22-FEB-81 12.00.00null1250null500null30
7566null&quot;JONES&quot;null&quot;MANAGER&quot;null7839null02-APR-81 12.00.00null2975nullnull20
7654null&quot;MARTIN&quot;null&quot;SALESMAN&quot;null7698null28-SEP-81 12.00.00null1250null1400null30
7698null&quot;BLAKE&quot;null&quot;MANAGER&quot;null7839null01-MAY-81 12.00.00null2850nullnull30
7782null&quot;CLARK&quot;null&quot;MANAGER&quot;null7839null09-JUN-81 12.00.00null2450nullnull10
7788null&quot;SCOTT&quot;null&quot;ANALYST&quot;null7566null19-APR-87 12.00.00null3000nullnull20
7839null&quot;KING&quot;null&quot;PRESIDENT&quot;nullnull17-NOV-81 12.00.00null5000nullnull10
7844null&quot;TURNER&quot;null&quot;SALESMAN&quot;null7698null08-SEP-81 12.00.00null1500null0null30
7876null&quot;ADAMS&quot;null&quot;CLERK&quot;null7788null23-MAY-87 12.00.00null1100nullnull20
7900null&quot;JAMES&quot;null&quot;CLERK&quot;null7698null03-DEC-81 12.00.00null950nullnull30
7902null&quot;FORD&quot;null&quot;ANALYST&quot;null7566null03-DEC-81 12.00.00null3000nullnull20
7934null&quot;MILLER&quot;null&quot;CLERK&quot;null7782null23-JAN-82 12.00.00null1300nullnull10
</pre>
<p>So that was kind of a &#8216;trick&#8217; &#8211; I&#8217;m not sure it&#8217;s a documented feature, although <a href="http://krisrice.blogspot.com/2007/05/csv-with-sqldeveloper.html">Kris did talk about it WAAAAAAAY back in 2007</a>.</p>
<p>Now you can just Run > Copy > Paste!</p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/05/sometimes-the-mouse-runs-faster-than-your-fingers/" title="Sometimes the Mouse Runs Faster than your Fingers?">Sometimes the Mouse Runs Faster than your Fingers?</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/04/sqldev-trick-shifthover-to-peek-into-a-stored-proc/" title="SQLDev Trick: SHIFT+Hover to Peek Into a Stored Proc">SQLDev Trick: SHIFT+Hover to Peek Into a Stored Proc</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-query-grid-tricks/" title="SQL Developer Query &#038; Grid Tricks">SQL Developer Query &#038; Grid Tricks</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/02/sql-developer-trick-double-click-to-go-full-screen/" title="SQL Developer Trick: Double-Click to Go Full Screen">SQL Developer Trick: Double-Click to Go Full Screen</a></li><li><a href="http://www.thatjeffsmith.com/archive/2011/11/code-completion-insight-with-oracle-sql-developer/" title="Code Completion Insight with Oracle SQL Developer">Code Completion Insight with Oracle SQL Developer</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PLSQL Warning Messages in Oracle SQL Developer</title>
		<link>http://www.thatjeffsmith.com/archive/2012/05/plsql-warning-messages-in-oracle-sql-developer/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/05/plsql-warning-messages-in-oracle-sql-developer/#comments</comments>
		<pubDate>Tue, 01 May 2012 14:52:55 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[sqldev]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3037</guid>
		<description><![CDATA[If you have problems in your PL/SQL program that prevent compilation and execution of said program, then that is reported back as an &#8216;error.&#8217; It could be as simple as missing a semicolon - When you run this through SQL Developer, an error message is returned a la Well that&#8217;s an easy fix. We&#8217;re all <a href="http://www.thatjeffsmith.com/archive/2012/05/plsql-warning-messages-in-oracle-sql-developer/#more-3037" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>If you have problems in your PL/SQL program that prevent compilation and execution of said program, then that is reported back as an &#8216;error.&#8217;</p>
<p>It could be as simple as missing a semicolon -</p>
<pre class="brush: sql; title: ; notranslate">
create or replace
FUNCTION &quot;COUNTRIES_ROWS_BACK&quot;
   RETURN sys_refcursor
IS
   l_curvar   sys_refcursor;
BEGIN
   OPEN l_curvar FOR 'SELECT * FROM countries'

   RETURN l_curvar;
END COUNTRIES_ROWS_bACK;
</pre>
<p>When you run this through SQL Developer, an error message is returned a la</p>
<div id="attachment_3038" class="wp-caption aligncenter" style="width: 767px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/error1.png" rel="prettyPhoto[3037]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/error1.png" alt="" title="error1" width="757" height="418" class="size-full wp-image-3038" /></a><p class="wp-caption-text">Oracle PLSQL Error Messages in SQL Developer</p></div>
<h3>Well that&#8217;s an easy fix. We&#8217;re all done! Or are we?</h3>
<p>Enter the world of <a href="http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/errors.htm#i9084">PL/SQL compile-time warnings</a>:</p>
<blockquote><p>To make your programs more robust and avoid problems at run time, you can turn on checking for certain warning conditions. These conditions are not serious enough to produce an error and keep you from compiling a subprogram. They might point out something in the subprogram that produces an undefined result or might create a performance problem.</p></blockquote>
<p>To enable those in SQL Developer, go to Tools-Preferences-Database-PL/SQL Compiler.</p>
<p>You can enable the warnings, and you can even bump the warnings up to the level of an error. When you do this, you force the compilation to &#8216;break.&#8217; Fun, right? Maybe you could employe this &#8216;tip&#8217; for next year&#8217;s April Fool&#8217;s Day if you have a very good working relationship with your co-workers &#8211; but just remember you didn&#8217;t get that idea from me <img src='http://www.thatjeffsmith.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Let&#8217;s take a look at how my &#8216;perfectly normal&#8217; program is evaluated with warnings enabled.</p>
<div id="attachment_3039" class="wp-caption aligncenter" style="width: 764px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/no_error1.png" rel="prettyPhoto[3037]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/no_error1.png" alt="" title="no_error1" width="754" height="428" class="size-full wp-image-3039" /></a><p class="wp-caption-text">ALTER SESSION SET PLSQL_WARNINGS=&#039;ENABLE:ALL&#039;;</p></div>
<p>Did you catch the yellow squiggly lines? Warnings show up in yellow as opposed to red for errors.</p>
<h3>Quick BONUS Tip: Configure the Yellow &#038; Red Wavy Lines</h3>
<p>Can&#8217;t make out the yellow warning squiggles? Turn &#8216;em orange, or make them dotted lines or heavy underlines. It&#8217;s all in the preferences.</p>
<div id="attachment_3047" class="wp-caption aligncenter" style="width: 725px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/warning_wavy_line.png" rel="prettyPhoto[3037]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/05/warning_wavy_line.png" alt="" title="warning_wavy_line" width="715" height="515" class="size-full wp-image-3047" /></a><p class="wp-caption-text">Wavy gravy dude...</p></div>
<p>Let&#8217;s take a quick break. If you&#8217;ve got your earphones on and you don&#8217;t mind a bit of profanity, then it&#8217;s time to harken back to 1998 before the entire software world had seen Office Space. &#8216;PC Load letter?!?&#8217;</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/WUUptX0i55g?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>Instead of cursing &#8216;PC Load Letter,&#8217; you might be having similar thoughts regarding<br />
 <a href="https://forums.oracle.com/forums/thread.jspa?threadID=1130349">PL<em>W</em>-05018 &#8211; what am I doing wrong</a>?</p>
<p>Notice the &#8216;<em>W</em>&#8216; on the error message &#8211; it&#8217;s actually a &#8216;warning.&#8217; Maybe it&#8217;s bad, maybe it&#8217;s not. You need to investigate.</p>
<p>In this case Oracle is warning us that the scope of the program will execute as the program&#8217;s owner, not as the current user. <a href="http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/subprograms.htm#i18574">AUTHID CURRENT_USER</a> allows you to let the account who is executing the program define what schema the reference objects in the code will act upon. This is not a blog about AUTHID, but there are many, many out there.</p>
<p>Remember, you can turn these warnings on and off, and you can also escalate them up to the ERROR level. In a development environment I think I&#8217;d at least want to see the warnings.</p>
<p>Note: you can define how to treat individual warnings. If you agree with a particular set, or believe so strongly in avoiding it, you can set at an individual level for it to be treated as an error.</p>
<pre class="brush: sql; title: ; notranslate">
ALTER SESSION SET PLSQL_WARNINGS='ENABLE:SEVERE', 'DISABLE:PERFORMANCE',
                                 'ERROR:06002';
</pre>
<p>You would need to add this to your logon script defined in the SQL Developer preferences as the current options are an all or nothing proposition.</p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/01/viewing-plsql-compilation-errors-in-oracle-sql-developer/" title="Viewing PLSQL Compilation Errors in Oracle SQL Developer">Viewing PLSQL Compilation Errors in Oracle SQL Developer</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/04/sqldev-trick-shifthover-to-peek-into-a-stored-proc/" title="SQLDev Trick: SHIFT+Hover to Peek Into a Stored Proc">SQLDev Trick: SHIFT+Hover to Peek Into a Stored Proc</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-video-tutorial-navigating-your-plsql/" title="SQL Developer Video Tutorial: Navigating Your PL/SQL">SQL Developer Video Tutorial: Navigating Your PL/SQL</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/javadoc-for-the-database-a-la-dbdoc-via-sql-developer/" title="JAVADOC for the Oracle Database a la DBDOC">JAVADOC for the Oracle Database a la DBDOC</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/using-pass-counts-to-turbo-charge-your-plsql-breakpoints/" title="Using Pass Counts to Turbo Charge Your PL/SQL Breakpoints">Using Pass Counts to Turbo Charge Your PL/SQL Breakpoints</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/05/plsql-warning-messages-in-oracle-sql-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Substitution Variables &amp; HTML Reports in SQL Developer</title>
		<link>http://www.thatjeffsmith.com/archive/2012/04/substitution-variables-html-reports-in-sql-developer/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/04/substitution-variables-html-reports-in-sql-developer/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 14:39:56 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[sqldev]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3024</guid>
		<description><![CDATA[Martin asks - I am searching for any method to pass any table name to a sql statement in a self-written report. My initial response was to quote Lewis&#8217; article in Oracle Magazine where he discusses bind variables, Making the Most of Oracle Developer Reports. So binds work, but what about SQL*Plus Substitution Variables? You&#8217;ve <a href="http://www.thatjeffsmith.com/archive/2012/04/substitution-variables-html-reports-in-sql-developer/#more-3024" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="https://forums.oracle.com/forums/thread.jspa?threadID=2380389&#038;tstart=0"><a href="https://twitter.com/#!/martinberx">Martin</a> asks</a> -</p>
<blockquote><p>I am searching for any method to pass any table name to a sql statement in a self-written report.</p></blockquote>
<p>My initial response was to quote Lewis&#8217; article in Oracle Magazine where he discusses bind variables, <a href="http://www.oracle.com/technetwork/articles/cunningham-sqldev-092226.html">Making the Most of Oracle Developer Reports</a>.</p>
<p>So binds work, but what about <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch5.htm#i1211130">SQL*Plus Substitution Variables</a>? You&#8217;ve seen these before:</p>
<p>&#038;  &#8211; Input value and use once<br />
&#038;&#038; &#8211; Input value and use for entire session.</p>
<p>The answer is, I THINK, &#8216;Yes.&#8217; Let&#8217;s investigate.</p>
<p>Here&#8217;s the report I was able to generate with a bit of tinkering:</p>
<div id="attachment_3025" class="wp-caption aligncenter" style="width: 882px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/martin_report1.png" rel="prettyPhoto[3024]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/martin_report1.png" alt="" title="martin_report1" width="872" height="594" class="size-full wp-image-3025" /></a><p class="wp-caption-text">Not sure this right, but that&#039;s what you get when you offshore your development to me <img src='http://www.thatjeffsmith.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p></div>
<p>And here&#8217;s how I built it.</p>
<h2>First the HTML stuff</h2>
<div id="attachment_3026" class="wp-caption aligncenter" style="width: 765px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/martin_report2.png" rel="prettyPhoto[3024]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/martin_report2.png" alt="" title="martin_report2" width="755" height="557" class="size-full wp-image-3026" /></a><p class="wp-caption-text">Set the the style to &#039;PLSQL DBMS Output&#039;</p></div>
<p>Lewis talk about the HTML reporting in his previously cited article.</p>
<h2>And now the tricky Substitution Stuff</h2>
<p>Set the &#8216;Style&#8217; to &#8216;Script&#8217; for your Child Report.</p>
<p>Then insert your SQL*Plus&#8217;ish script &#8211; note that we support most but not all SQL*Plus commands. For a full list, check out the SQL Developer Help topic on the subject.</p>
<pre class="brush: sql; title: ; notranslate">
set linesize 100
column endpoint_value format 999,999
column endpoint_number format 999,999
column TOTAL format 999,999

SELECT count(*) TOTAL, max( &amp;&amp;column ) AS endpoint_value, endpoint_number
FROM(
 SELECT  &amp;&amp;column, ntile( &amp;&amp;bucket ) OVER (ORDER BY &amp;&amp;column ) AS endpoint_number
 FROM &amp;&amp;table
)
 GROUP BY endpoint_number
 ORDER BY endpoint_number;

select 'Column: &amp;&amp;column' from dual;
select 'Table: &amp;&amp;table' from dual;
select 'Buckets: &amp;&amp;bucket' from dual;
</pre>
<p>Then save the report, and let&#8217;s run it.</p>
<p>SQL Developer will prompt me for the value of the COLUMN, TABLE, and number of buckets for the analytic call in the <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions101.htm">ntile function</a>.</p>
<p>It prompts once and then uses the input values throughout the script as it&#8217;s ran.</p>
<div id="attachment_3027" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/martin_report4.png" rel="prettyPhoto[3024]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/martin_report4.png" alt="" title="martin_report4" width="550" height="348" class="size-full wp-image-3027" /></a><p class="wp-caption-text">Substitution Variable Prompt</p></div>
<h2>Thanks Martin for the question!</h2>
<p>I&#8217;m not a total jerk, I did ask Martin for permission to post this, and I expect we&#8217;ll continue the discussion below <img src='http://www.thatjeffsmith.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/01/average-run-time-for-oracle-jobs/" title="Average Run Time for Oracle Jobs">Average Run Time for Oracle Jobs</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/01/sweet-child-report-o-mine/" title="Sweet Child Report O&#8217; Mine">Sweet Child Report O&#8217; Mine</a></li><li><a href="http://www.thatjeffsmith.com/archive/2011/12/simple-bar-chart-reports-with-sql-developer/" title="Simple Bar Chart Reports with SQL Developer">Simple Bar Chart Reports with SQL Developer</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/01/generating-html-data-dictionary-reports-with-oracle-sql-developer/" title="Generating HTML Data Dictionary Reports with Oracle SQL Developer">Generating HTML Data Dictionary Reports with Oracle SQL Developer</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/01/sql-developer-data-modeler-quick-tip-use-oracle-join-syntax-or-ansi/" title="SQL Developer Data Modeler Quick Tip: Use Oracle JOIN Syntax or ANSI">SQL Developer Data Modeler Quick Tip: Use Oracle JOIN Syntax or ANSI</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/04/substitution-variables-html-reports-in-sql-developer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQLDev Trick: SHIFT+Hover to Peek Into a Stored Proc</title>
		<link>http://www.thatjeffsmith.com/archive/2012/04/sqldev-trick-shifthover-to-peek-into-a-stored-proc/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/04/sqldev-trick-shifthover-to-peek-into-a-stored-proc/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 16:44:08 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[sqldev]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=3008</guid>
		<description><![CDATA[I&#8217;m poking around an unfamiliar schema or environment. I&#8217;m not sure what these procedures do. I could open them, but I&#8217;m lazy and I don&#8217;t want the tool to open another document/window. The &#8216;mystery&#8217; code: These programs are self-documenting as they have the most awesome names ever! I&#8217;m guessing that one package will blast my <a href="http://www.thatjeffsmith.com/archive/2012/04/sqldev-trick-shifthover-to-peek-into-a-stored-proc/#more-3008" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m poking around an unfamiliar schema or environment. I&#8217;m not sure what these procedures do. I could open them, but I&#8217;m lazy and I don&#8217;t want the tool to open another document/window.</p>
<p>The &#8216;mystery&#8217; code:</p>
<div id="attachment_3014" class="wp-caption aligncenter" style="width: 379px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/hover_mouse11.png" rel="prettyPhoto[3008]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/hover_mouse11.png" alt="" title="hover_mouse1" width="369" height="453" class="size-full wp-image-3014" /></a><p class="wp-caption-text">Some PLSQL code that does...</p></div>
<p>These programs are self-documenting as they have the most awesome names ever! I&#8217;m guessing that one package will blast my enemies?, but I&#8217;m not sure. If only I could peek into the source without opening it!!!</p>
<p>Hmm, what&#8217;s this thing do?</p>
<div class="wp-caption aligncenter" style="width: 610px"><a href="http://upload.wikimedia.org/wikipedia/commons/c/cc/SRI_Computer_Mouse.jpg" rel="prettyPhoto[3008]"><img alt="" src="http://upload.wikimedia.org/wikipedia/commons/c/cc/SRI_Computer_Mouse.jpg" title="Mouse" width="600" height="540" /></a><p class="wp-caption-text">The first mouse</p></div>
<p>If I <strong>hold down shift and then mouse-hover over an object in the tree</strong>, in this case some PL/SQL SYS packages, SQL Developer will peek into the object and popup the source code under your mouse.</p>
<p>Since I couldn&#8217;t figure out how to capture this in a screenshot, I went and did the next best thing &#8211; recorded a 10 second video. No sound, so don&#8217;t worry about my voice putting you to sleep. &#8212; STRIKE THAT &#8211;</p>
<p>Thanks to the awesome folks at <a href="https://twitter.com/#!/TechSmith/status/195617180581244928">@TechSmith</a>, I figured out how to setup a screenshot timer delay in SnagIt!</p>
<p>Here&#8217;s the picture (and I&#8217;ll leave the video of course.)</p>
<div id="attachment_3022" class="wp-caption aligncenter" style="width: 320px"><a href="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/hover_mouse2.png" rel="prettyPhoto[3008]"><img src="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/hover_mouse2.png" alt="" title="hover_mouse2" width="310" height="266" class="size-full wp-image-3022" /></a><p class="wp-caption-text">Hold down &#039;SHIFT&#039;, then mouse over on a tree item</p></div>
<p><video width="640" height="360" controls="controls"><br />
  <source src="/wp-content/uploads/2012/04/hover-watch.mp4" type="video/mp4" /><br />
</video></p>
<p><a href='http://www.thatjeffsmith.com/wp-content/uploads/2012/04/hover-watch.mp4'>If you can&#8217;t see the movie frame above try clicking here to watch the movie.</a></p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-video-tutorial-navigating-your-plsql/" title="SQL Developer Video Tutorial: Navigating Your PL/SQL">SQL Developer Video Tutorial: Navigating Your PL/SQL</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/oracle-sql-developer-a-5-minute-tour/" title="Oracle SQL Developer: a Video Tour of its Major Features">Oracle SQL Developer: a Video Tour of its Major Features</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/" title="Formatting Query Results to CSV in Oracle SQL Developer">Formatting Query Results to CSV in Oracle SQL Developer</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/plsql-warning-messages-in-oracle-sql-developer/" title="PLSQL Warning Messages in Oracle SQL Developer">PLSQL Warning Messages in Oracle SQL Developer</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/javadoc-for-the-database-a-la-dbdoc-via-sql-developer/" title="JAVADOC for the Oracle Database a la DBDOC">JAVADOC for the Oracle Database a la DBDOC</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/04/sqldev-trick-shifthover-to-peek-into-a-stored-proc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
<enclosure url="http://www.thatjeffsmith.com/wp-content/uploads/2012/04/hover-watch.mp4" length="156315" type="video/mp4" />
		</item>
		<item>
		<title>ODTUG SQL Developer Tips &amp; Tricks Presentation</title>
		<link>http://www.thatjeffsmith.com/archive/2012/04/odtug-sql-developer-tips-tricks-presentation/</link>
		<comments>http://www.thatjeffsmith.com/archive/2012/04/odtug-sql-developer-tips-tricks-presentation/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 19:29:15 +0000</pubDate>
		<dc:creator>JeffS</dc:creator>
				<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[slideshare]]></category>
		<category><![CDATA[sqldev]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thatjeffsmith.com/?p=2965</guid>
		<description><![CDATA[I&#8217;ve been fine-tuning my SQL Developer Tips presentation, having given it at RMOUG and now electronically for ODTUG. Still a lot of work to do until it is &#8216;perfect,&#8217; but folks already seem to enjoy it (if not me.) What I have left to do is trim the fat so I can shove as many <a href="http://www.thatjeffsmith.com/archive/2012/04/odtug-sql-developer-tips-tricks-presentation/#more-2965" class="more-link">Continue reading &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been fine-tuning my SQL Developer Tips presentation, having given it at RMOUG and now electronically for ODTUG. Still a lot of work to do until it is &#8216;perfect,&#8217; but folks already seem to enjoy it (if not me.)</p>
<p>What I have left to do is trim the fat so I can shove as many tips and tricks into an hour presentation!</p>
<p>If you want to review the slides, here they are:</p>
<iframe src="http://www.slideshare.net/slideshow/embed_code/12674124" width="674" height="545" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe><br/><br/>
<p>Of course I recommend you go straight to the source, which would be all of the <a href="http://www.thatjeffsmith.com/archive/category/general/pedia/sqldev/">&#8216;SQL Developer&#8217; category posts</a> on this blog. If you want a shortcut to the best posts, then use the <a href="http://www.thatjeffsmith.com/sql-developer/">SQL Developer resource page</a> I put together.</p>
<p>Do you have a favorite tip or trick that I&#8217;m missing? Please share it here in the form of a comment. I&#8217;ll try to work it in for the &#8216;next release.&#8217;</p>
<p>You can see this &#8216;live&#8217; and in-person for the following events:</p>
<ul>
<li>Central Florida Oracle User Group (<a href="http://ioug.itconvergence.com/pls/apex/f?p=189:27:4713465097868879::NO:27::">CFOUG</a>), May 23</li>
<li>SUNCOAST Oracle User Group Meeting (<a href="http://www.soug.org/meetingdetail.php?key=20120524">SOUG</a>), May 24</li>
<li><a href="http://kscope12.com/component/seminar/seminarslist#SQL Developer Tips and Tricks">ODTUG Kscope12</a> Monday June 25, Session 5, 4:15 pm &#8211; 5:15 pm</li>
<li>A really, really big show in San Francisco this Fall</li>
</ul>
<h3>Would you like me to present to your company or organization?</h3>
<p>Just ask!</p>
<h2  class="related_post_title">You Might Also Enjoy</h2><ul class="related_post"><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-query-grid-tricks/" title="SQL Developer Query &#038; Grid Tricks">SQL Developer Query &#038; Grid Tricks</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/05/sql-developer-incremental-find-via-ctrl-e/" title="SQL Developer Incremental Find via Ctrl-E">SQL Developer Incremental Find via Ctrl-E</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/03/sql-developer-video-tutorial-navigating-your-plsql/" title="SQL Developer Video Tutorial: Navigating Your PL/SQL">SQL Developer Video Tutorial: Navigating Your PL/SQL</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/02/sql-developer-trick-dropdown-vs-tree/" title="SQL Developer Trick: DropDown Vs Tree">SQL Developer Trick: DropDown Vs Tree</a></li><li><a href="http://www.thatjeffsmith.com/archive/2012/02/stupid-copy-paste-tricks/" title="Stupid Copy &#038; Paste Tricks">Stupid Copy &#038; Paste Tricks</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.thatjeffsmith.com/archive/2012/04/odtug-sql-developer-tips-tricks-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic

Served from: www.thatjeffsmith.com @ 2012-05-18 13:56:05 -->
