Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very Slow Query
Message
De
03/03/2003 11:57:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/03/2003 10:50:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00760376
Message ID:
00760402
Vues:
14
>I have an ODBC connection to an Oracle 8 database. All of the queries I have run so far seem to run pretty quickly. I have one now that takes about 10-12 minutes to execute. It takes about 2 second in SQL+. The table is about 67000 records.
>
>= sqlexec(liconnect,"select * from wps_mgr.ws_scale_ticket where ;   ws_scale_ticket.permit_no like 'BC%-2' and ;
>   ws_scale_ticket.ticket_date >= 20020401 and ;
>   ws_scale_ticket.ticket_date <= 20030331","tictemp")
>
>Any suggestions would be appreciated.

I'd get date comparison in front :

sqlexec(liconnect,"select * from wps_mgr.ws_scale_ticket where ;
ws_scale_ticket.ticket_date between 20020401 and 20030331 and ;
ws_scale_ticket.permit_no like 'BC%-2',"tictemp")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform