Navigation
Recent Posts
Archive
Although Crystal Reports has a built in LastFullMonth function SQL*Plus doesn't.
If you want to use SQL*Plus for your report and want the date parameter to be dynamic you can do so by manipulating sysdate and using some of the built in date functions.
Here is how
Tags: Oracle |SQL*Plus |Dates |Crystal Reports
If you want to produce a csv file from a SQL select query in SQL*Plus use the following syntax.
This will produce a csv formatted file. Straight to excel, change csv to xls but bear in mind two potential issues (a) row limit in Excel, and (b) leading zeros in number fields will be lost in excel.
The leading zeros can be resolved if you instead spool the file as a txt as you will be forced to use excels conversion wizard to open the file.
© Eriginal Ltd 2011, all rights reserved