DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Better query efficiency

  1. #1
    Join Date
    Feb 2003
    Posts
    3

    Better Script Efficienty

    I have an plsql script containing something like this:

    daylist =
    "01
    02
    ...
    "
    hourlist =
    "01
    02
    03
    ...
    "
    minutelist =
    "00
    01
    ...
    "
    for day in daylist; do
    for hour in hourlist; do
    for minute in minutelist; do
    Select $day$hour$minute
    do stuff...

    I am having no problem getting this to work, but with large amounts of data it takes some time.
    My question is: Is their a more efficient way to go about this??

    Thanks in advance
    Last edited by Nestafaria; 02-14-2003 at 04:21 PM.

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    it is not clear what you are trying to do here -- this looks like plsql -- it is not sql, i think
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Feb 2003
    Posts
    3
    Sorry about that, yes this is PL/SQL

    I am just reading in the day, hour, and minute from their respective lists and then running a select on each one. I thought there may be a better way to do this than running so many individual selects. Bascially, i am just gathering data from the DB for analysis and this is how i'm telling it what data to get.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width