Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
How can I see the execution plan?
Daniel Serodio
2006-06-29 11:02:59
How can I see the execution plan for a given SELECT query? ie, the equivalent of EXPLAIN PLAN FOR SELECT... ?

Thanks,
Daniel Serodio
Re:How can I see the execution plan?
HXTT Support
2006-06-29 17:46:53
HXTT DBF will optimize select query, but it doesn't support EXPLAIN PLAN sql now. If you paste your select query, we will tell your the possible optimization result.
Re:Re:How can I see the execution plan?
Daniel Serodio
2006-06-30 12:21:28
Is there some way to know at least if it's using an index or doing a full-table scan?
Re:Re:Re:How can I see the execution plan?
HXTT Support
2006-06-30 18:57:53
>Is there some way to know at least if it's using an index or doing a full-table scan?
No way. Many optimizations will be done for your sql. HXTT will check ON clause, where clause, having clause, and so on, to see where there're index expressions to be utilized. Left join, and right join will be converted into inner join if possible. Like operation will be converted into = coperation if possible. Or operation will be converted into In operation if possible. BETWEEN ... AND..., IN, ORDER BY, DISTINCT, LIKE operation can utilize index expressions. HXTT DBF uses automatic temporary index to quicken subquery sql and join sql. If you paste your sql, we will point out the possible optimization automatically by HXTT DBF.
Re:Re:Re:Re:How can I see the execution plan?
Daniel Serodio
2006-07-03 11:34:23
Thanks for the information. If I have an index on "str(codigo,8)+str(semestre,1)", do I need to write "WHERE str(codigo,8)+str(semestre,1) = 123456781", or can I write "WHERE codigo=12345678 AND semestre=1" ? Can I write "WHERE semestre=1 AND codigo=12345678" ?

Thanks in advance,
Daniel Serodio
Re:Re:Re:Re:Re:How can I see the execution plan?
HXTT Support
2006-07-03 17:08:57
>WHERE str(codigo,8)+str(semestre,1) = 123456781",
Utilizes index.

>WHERE str(codigo,8)= 12345678",
Utilizes index.

>can I write "WHERE codigo=12345678 AND semestre=1" ?
> Can I write "WHERE semestre=1 AND codigo=12345678" ?
Doesn't utilizes index. You need an index on "codigo".

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap